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
impl 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DuplicateKeyPolicy
Source§impl FromSchema for DuplicateKeyPolicy
impl FromSchema for DuplicateKeyPolicy
fn from_value(value: &SchemaValue) -> Result<Self, 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
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