pub enum FileFormat {
Normal,
Json,
Text,
Raw,
}Expand description
Format for messages written to or read from a file.
Variants§
Normal
The full CanonicalMessage is serialized to JSON. Payload is a byte array.
Json
The full CanonicalMessage is serialized to JSON. Payload is rendered as a JSON value if possible.
Text
The full CanonicalMessage is serialized to JSON. Payload is rendered as a string if possible.
Raw
The raw payload of the message is written. For consumers, the line is read as raw bytes.
Trait Implementations§
Source§impl Clone for FileFormat
impl Clone for FileFormat
Source§fn clone(&self) -> FileFormat
fn clone(&self) -> FileFormat
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 FileFormat
impl Debug for FileFormat
Source§impl Default for FileFormat
impl Default for FileFormat
Source§fn default() -> FileFormat
fn default() -> FileFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileFormat
impl<'de> Deserialize<'de> for FileFormat
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 FileFormat
impl PartialEq for FileFormat
Source§impl Serialize for FileFormat
impl Serialize for FileFormat
impl Eq for FileFormat
impl StructuralPartialEq for FileFormat
Auto Trait Implementations§
impl Freeze for FileFormat
impl RefUnwindSafe for FileFormat
impl Send for FileFormat
impl Sync for FileFormat
impl Unpin for FileFormat
impl UnsafeUnpin for FileFormat
impl UnwindSafe for FileFormat
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