Enum tokio_serde_cbor::SdMode
source · [−]pub enum SdMode {
Always,
Once,
Never,
}
Expand description
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 Eq for SdMode
impl StructuralEq for SdMode
impl StructuralPartialEq for SdMode
Auto Trait Implementations
impl RefUnwindSafe for SdMode
impl Send for SdMode
impl Sync for SdMode
impl Unpin for SdMode
impl UnwindSafe for SdMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more