pub struct PropertyRules {
pub varint: VarIntEncoding,
pub delta_types: bool,
pub max_value_len: Option<u64>,
pub immutable_type: Option<u64>,
}Expand description
What separates one draft’s property block from another’s.
Fields§
§varint: VarIntEncodingThe varint every Type, Length and even value is written in.
delta_types: boolWhether each Type is a delta from the one before it rather than absolute.
max_value_len: Option<u64>The largest value an odd Type may carry, where the draft sets one.
immutable_type: Option<u64>The Type that holds Immutable Properties (Immutable Extensions), where the draft defines one.
Implementations§
Source§impl PropertyRules
impl PropertyRules
Sourcepub fn for_draft(draft: DraftVersion) -> Option<Self>
pub fn for_draft(draft: DraftVersion) -> Option<Self>
The rules draft gives its object property block. None on draft-07,
whose objects carry none.
Trait Implementations§
Source§impl Clone for PropertyRules
impl Clone for PropertyRules
impl Copy for PropertyRules
Source§impl Debug for PropertyRules
impl Debug for PropertyRules
impl Eq for PropertyRules
Source§impl PartialEq for PropertyRules
impl PartialEq for PropertyRules
impl StructuralPartialEq for PropertyRules
Auto Trait Implementations§
impl Freeze for PropertyRules
impl RefUnwindSafe for PropertyRules
impl Send for PropertyRules
impl Sync for PropertyRules
impl Unpin for PropertyRules
impl UnsafeUnpin for PropertyRules
impl UnwindSafe for PropertyRules
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