pub enum Body {
Empty,
Value(LinoValue),
Raw(String),
}Expand description
The body of a response: a value to encode, or nothing at all.
The distinction matters because None is a value Links Notation can encode,
while a 204 carries no body whatsoever.
Variants§
Empty
No body, as 204 and 304 require.
Value(LinoValue)
A value, encoded as the negotiated representation.
Raw(String)
An already-encoded body, sent as it is.
Trait Implementations§
impl StructuralPartialEq for Body
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl UnwindSafe for Body
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