#[non_exhaustive]pub enum SerializationFormat {
JSON,
MessagePack,
Toml,
}
Expand description
Available serialisation formats.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JSON
(de)serialize to/from JSON.
MessagePack
(de)serialize to/from MessagePack.
Toml
(de)serialize to/from TOML.
Trait Implementations§
Source§impl Debug for SerializationFormat
impl Debug for SerializationFormat
Source§impl Default for SerializationFormat
impl Default for SerializationFormat
Source§fn default() -> SerializationFormat
fn default() -> SerializationFormat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SerializationFormat
impl RefUnwindSafe for SerializationFormat
impl Send for SerializationFormat
impl Sync for SerializationFormat
impl Unpin for SerializationFormat
impl UnwindSafe for SerializationFormat
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