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

Places the tag in front of each encoded frame.

Places the tag in front of the first encoded frame.

Doesn't place the tag at all.

Trait Implementations

impl Clone for SdMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SdMode
[src]

Formats the value using the given formatter.

impl Eq for SdMode
[src]

impl PartialEq for SdMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.