pub enum LengthPolicyV2 {
Preserve,
Exact {
length: u32,
},
Range {
min: u32,
max: u32,
},
MayChange,
}Expand description
Data-length transition.
Variants§
Trait Implementations§
Source§impl Clone for LengthPolicyV2
impl Clone for LengthPolicyV2
Source§fn clone(&self) -> LengthPolicyV2
fn clone(&self) -> LengthPolicyV2
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 moreSource§impl Debug for LengthPolicyV2
impl Debug for LengthPolicyV2
Source§impl<'de> Deserialize<'de> for LengthPolicyV2
impl<'de> Deserialize<'de> for LengthPolicyV2
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LengthPolicyV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LengthPolicyV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LengthPolicyV2
Source§impl PartialEq for LengthPolicyV2
impl PartialEq for LengthPolicyV2
Source§impl Serialize for LengthPolicyV2
impl Serialize for LengthPolicyV2
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LengthPolicyV2
Auto Trait Implementations§
impl Freeze for LengthPolicyV2
impl RefUnwindSafe for LengthPolicyV2
impl Send for LengthPolicyV2
impl Sync for LengthPolicyV2
impl Unpin for LengthPolicyV2
impl UnsafeUnpin for LengthPolicyV2
impl UnwindSafe for LengthPolicyV2
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