Struct actix_web_lab::respond::Cbor
source · pub struct Cbor<T>(pub T);
Available on crate feature
cbor
only.Expand description
CBOR responder.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: Serialize> Responder for Cbor<T>
impl<T: Serialize> Responder for Cbor<T>
type Body = Bytes
source§fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, _req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse
.Auto Trait Implementations§
impl<T> RefUnwindSafe for Cbor<T>where T: RefUnwindSafe,
impl<T> Send for Cbor<T>where T: Send,
impl<T> Sync for Cbor<T>where T: Sync,
impl<T> Unpin for Cbor<T>where T: Unpin,
impl<T> UnwindSafe for Cbor<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T, A> DynAccess<T> for Awhere
A: Access<T>,
<A as Access<T>>::Guard: 'static,
impl<T, A> DynAccess<T> for Awhere A: Access<T>, <A as Access<T>>::Guard: 'static,
source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load
.