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]
fn clone(&self) -> SdMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more