pub enum MessageFormat {
Json,
MessagePack,
Binary,
}Expand description
Message encoding format.
Variants§
Json
JSON text format (human-readable, larger size)
MessagePack
Binary MessagePack format (compact, efficient)
Binary
Binary format with optional compression
Trait Implementations§
Source§impl Clone for MessageFormat
impl Clone for MessageFormat
Source§fn clone(&self) -> MessageFormat
fn clone(&self) -> MessageFormat
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 MessageFormat
impl Debug for MessageFormat
Source§impl Default for MessageFormat
impl Default for MessageFormat
Source§fn default() -> MessageFormat
fn default() -> MessageFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageFormat
impl<'de> Deserialize<'de> for MessageFormat
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 PartialEq for MessageFormat
impl PartialEq for MessageFormat
Source§impl Serialize for MessageFormat
impl Serialize for MessageFormat
impl Copy for MessageFormat
impl Eq for MessageFormat
impl StructuralPartialEq for MessageFormat
Auto Trait Implementations§
impl Freeze for MessageFormat
impl RefUnwindSafe for MessageFormat
impl Send for MessageFormat
impl Sync for MessageFormat
impl Unpin for MessageFormat
impl UnsafeUnpin for MessageFormat
impl UnwindSafe for MessageFormat
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