pub struct DaprJson<T>(pub T);
Expand description
Workaround for Dapr’s JSON serialization not correcly setting Content-Type header
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T, S> FromRequest<S> for DaprJson<T>
impl<T, S> FromRequest<S> for DaprJson<T>
§type Rejection = JsonRejection
type Rejection = JsonRejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
impl<T: Copy> Copy for DaprJson<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for DaprJson<T>where
T: RefUnwindSafe,
impl<T> Send for DaprJson<T>where
T: Send,
impl<T> Sync for DaprJson<T>where
T: Sync,
impl<T> Unpin for DaprJson<T>where
T: Unpin,
impl<T> UnwindSafe for DaprJson<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> 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