pub enum Serialized {
MessagePack(Vec<u8>),
Struct(Value),
Json(String),
}Expand description
A success message.
Variants§
MessagePack(Vec<u8>)
A message carrying a payload encoded with MessagePack.
Struct(Value)
A successful payload in a generic intermediary format.
Json(String)
A payload represented as a raw JSON String.
Trait Implementations§
Source§impl Clone for Serialized
impl Clone for Serialized
Source§fn clone(&self) -> Serialized
fn clone(&self) -> Serialized
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Serialized
impl Debug for Serialized
Source§impl<'de> Deserialize<'de> for Serialized
impl<'de> Deserialize<'de> for Serialized
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
Source§impl From<Serialized> for Packet
impl From<Serialized> for Packet
Source§fn from(v: Serialized) -> Self
fn from(v: Serialized) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Serialized
impl PartialEq for Serialized
Source§impl Serialize for Serialized
impl Serialize for Serialized
impl StructuralPartialEq for Serialized
Auto Trait Implementations§
impl Freeze for Serialized
impl RefUnwindSafe for Serialized
impl Send for Serialized
impl Sync for Serialized
impl Unpin for Serialized
impl UnwindSafe for Serialized
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