Enum tokio_serde_cbor::SdMode [−][src]
pub enum SdMode { Always, Once, Never, }
Describes the behaviour of self-describe tags.
CBOR defines a tag which can be used to recognize a document as being CBOR (it's sometimes called „magic“). This specifies if it should be present when encoding.
Variants
Always
Places the tag in front of each encoded frame.
Once
Places the tag in front of the first encoded frame.
Never
Doesn't place the tag at all.
Trait Implementations
impl Clone for SdMode
[src]
impl Clone for SdMode
fn clone(&self) -> SdMode
[src]
fn clone(&self) -> SdMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for SdMode
[src]
impl Debug for SdMode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for SdMode
[src]
impl Eq for SdMode
impl PartialEq for SdMode
[src]
impl PartialEq for SdMode