pub struct JsonBody<T>(pub T);Expand description
Represents the parameters passed by the URI path.
Tuple Fields§
§0: TImplementations§
source§impl<T> JsonBody<T>
impl<T> JsonBody<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes self and returns the value of the parameter.
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for JsonBody<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JsonBody<T>where
T: Deserialize<'de>,
source§fn deserialize<D>(
deserializer: D,
) -> Result<JsonBody<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<JsonBody<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de, T> EndpointArgRegister for JsonBody<T>where
T: Deserialize<'de> + ToSchema,
impl<'de, T> EndpointArgRegister for JsonBody<T>where
T: Deserialize<'de> + ToSchema,
source§impl<'ex, T> Extractible<'ex> for JsonBody<T>where
T: Deserialize<'ex> + Send,
impl<'ex, T> Extractible<'ex> for JsonBody<T>where
T: Deserialize<'ex> + Send,
source§impl<'de, T> ToRequestBody for JsonBody<T>where
T: Deserialize<'de> + ToSchema,
impl<'de, T> ToRequestBody for JsonBody<T>where
T: Deserialize<'de> + ToSchema,
source§fn to_request_body(components: &mut Components) -> RequestBody
fn to_request_body(components: &mut Components) -> RequestBody
Returns
RequestBody.Auto Trait Implementations§
impl<T> Freeze for JsonBody<T>where
T: Freeze,
impl<T> RefUnwindSafe for JsonBody<T>where
T: RefUnwindSafe,
impl<T> Send for JsonBody<T>where
T: Send,
impl<T> Sync for JsonBody<T>where
T: Sync,
impl<T> Unpin for JsonBody<T>where
T: Unpin,
impl<T> UnwindSafe for JsonBody<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
source§impl<T> FutureTraceExt for Twhere
T: FutureExt,
impl<T> FutureTraceExt for Twhere
T: FutureExt,
source§fn with_current_context_span(self, otel_span: Span) -> WithContext<Self> ⓘ
fn with_current_context_span(self, otel_span: Span) -> WithContext<Self> ⓘ
Pass the span of opentelemetry to the current context of tracing.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request