pub enum BodyWire {
Empty,
Text(String),
Json(Value),
Bytes(String),
Xml(String),
}Expand description
Wire representation of a message body.
v1 supports Empty, Text, Json. Bytes (base64) and Xml are
forward-looking extensions for future protocol versions.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BodyWire
impl<'de> Deserialize<'de> for BodyWire
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BodyWire
Auto Trait Implementations§
impl Freeze for BodyWire
impl RefUnwindSafe for BodyWire
impl Send for BodyWire
impl Sync for BodyWire
impl Unpin for BodyWire
impl UnsafeUnpin for BodyWire
impl UnwindSafe for BodyWire
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