pub enum DuplicateKeyPolicy {
Reject,
LastWins,
}Expand description
Resolution policy for a repeated key in a OptionShape::RepeatableMap.
Variants§
Trait Implementations§
Source§impl Clone for DuplicateKeyPolicy
impl Clone for DuplicateKeyPolicy
Source§fn clone(&self) -> DuplicateKeyPolicy
fn clone(&self) -> DuplicateKeyPolicy
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 DuplicateKeyPolicy
Source§impl Debug for DuplicateKeyPolicy
impl Debug for DuplicateKeyPolicy
Source§impl<'de> Deserialize<'de> for DuplicateKeyPolicy
impl<'de> Deserialize<'de> for DuplicateKeyPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DuplicateKeyPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DuplicateKeyPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DuplicateKeyPolicy
Source§impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
Source§fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
Converts to this type from the input type.
Source§impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
impl From<&DuplicateKeyPolicy> for DuplicateKeyPolicy
Source§fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
fn from(p: &DuplicateKeyPolicy) -> DuplicateKeyPolicy
Converts to this type from the input type.
Source§impl FromSchema for DuplicateKeyPolicy
impl FromSchema for DuplicateKeyPolicy
fn from_value( value: &SchemaValue, ) -> Result<DuplicateKeyPolicy, FromSchemaError>
Source§impl IntoSchema for DuplicateKeyPolicy
impl IntoSchema for DuplicateKeyPolicy
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for DuplicateKeyPolicy
impl PartialEq for DuplicateKeyPolicy
Source§impl Serialize for DuplicateKeyPolicy
impl Serialize for DuplicateKeyPolicy
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 DuplicateKeyPolicy
Auto Trait Implementations§
impl Freeze for DuplicateKeyPolicy
impl RefUnwindSafe for DuplicateKeyPolicy
impl Send for DuplicateKeyPolicy
impl Sync for DuplicateKeyPolicy
impl Unpin for DuplicateKeyPolicy
impl UnsafeUnpin for DuplicateKeyPolicy
impl UnwindSafe for DuplicateKeyPolicy
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