pub struct Empty;
Expand description
A type that (for minicbor typed handlers) represents an empty payload.
This is particularly practical for resources that have a GET and PUT handler that act on serialized data, but where the POST handler just takes an empty resource.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnwindSafe for Empty
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