#[repr(u16)]pub enum Encoding {
Postcard = 1,
Json = 2,
Raw = 3,
}Expand description
Body encoding format.
Variants§
Postcard = 1
Default: postcard via facet (not serde).
Json = 2
JSON for debugging and external tooling.
Raw = 3
Application-defined, no schema.
Implementations§
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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