pub struct CborOptions {
pub deterministic_mode: CborDeterministicMode,
pub preferred_float: bool,
pub canonical_nan: bool,
pub normalize_neg_zero: bool,
pub allow_indefinite: bool,
pub strict_tags: bool,
}Expand description
Detailed options for CBOR encoding.
Fields§
§deterministic_mode: CborDeterministicModeDeterministic encoding mode.
preferred_float: boolPreferred serialization for floating-point values (§4.1).
canonical_nan: boolCanonical NaN encoding (0xf97e00).
normalize_neg_zero: boolNormalize negative zero (-0.0) to positive zero (0.0).
allow_indefinite: boolAllow indefinite-length items.
Strict tag validity checking.
Implementations§
Source§impl CborOptions
impl CborOptions
Sourcepub const DETERMINISTIC: Self
pub const DETERMINISTIC: Self
Default options for deterministic CBOR.
Trait Implementations§
Source§impl Clone for CborOptions
impl Clone for CborOptions
Source§fn clone(&self) -> CborOptions
fn clone(&self) -> CborOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CborOptions
Source§impl Debug for CborOptions
impl Debug for CborOptions
impl Eq for CborOptions
Source§impl PartialEq for CborOptions
impl PartialEq for CborOptions
Source§fn eq(&self, other: &CborOptions) -> bool
fn eq(&self, other: &CborOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CborOptions
Auto Trait Implementations§
impl Freeze for CborOptions
impl RefUnwindSafe for CborOptions
impl Send for CborOptions
impl Sync for CborOptions
impl Unpin for CborOptions
impl UnsafeUnpin for CborOptions
impl UnwindSafe for CborOptions
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