mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-17 08:52:30 +01:00
Do not serialize _non_exhaustive field
This commit is contained in:
@@ -36,6 +36,7 @@ pub struct Context {
|
||||
/// users can trace related actions across a distributed system.
|
||||
pub trace_context: trace::Context,
|
||||
#[doc(hidden)]
|
||||
#[cfg_attr(feature = "serde1", serde(skip_serializing, default))]
|
||||
pub(crate) _non_exhaustive: (),
|
||||
}
|
||||
|
||||
|
||||
@@ -73,6 +73,7 @@ pub struct Request<T> {
|
||||
/// The request body.
|
||||
pub message: T,
|
||||
#[doc(hidden)]
|
||||
#[cfg_attr(feature = "serde1", serde(skip_serializing, default))]
|
||||
_non_exhaustive: (),
|
||||
}
|
||||
|
||||
@@ -85,6 +86,7 @@ pub struct Response<T> {
|
||||
/// The response body, or an error if the request failed.
|
||||
pub message: Result<T, ServerError>,
|
||||
#[doc(hidden)]
|
||||
#[cfg_attr(feature = "serde1", serde(skip_serializing, default))]
|
||||
_non_exhaustive: (),
|
||||
}
|
||||
|
||||
@@ -105,6 +107,7 @@ pub struct ServerError {
|
||||
/// A message describing more detail about the error that occurred.
|
||||
pub detail: Option<String>,
|
||||
#[doc(hidden)]
|
||||
#[cfg_attr(feature = "serde1", serde(skip_serializing, default))]
|
||||
_non_exhaustive: (),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user