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> 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, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load
.