pub struct RepeatableMapShape {
pub repetition: Repetition,
pub map_type: SchemaType,
pub duplicate_key_policy: DuplicateKeyPolicy,
}Fields§
§repetition: Repetition§map_type: SchemaTypeA SchemaType::Map node; the collected value is this map.
duplicate_key_policy: DuplicateKeyPolicyWhat happens when the same key is supplied more than once.
Trait Implementations§
Source§impl Clone for RepeatableMapShape
impl Clone for RepeatableMapShape
Source§fn clone(&self) -> RepeatableMapShape
fn clone(&self) -> RepeatableMapShape
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 RepeatableMapShape
impl Debug for RepeatableMapShape
Source§impl<'de> Deserialize<'de> for RepeatableMapShape
impl<'de> Deserialize<'de> for RepeatableMapShape
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RepeatableMapShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RepeatableMapShape, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromSchema for RepeatableMapShape
impl FromSchema for RepeatableMapShape
fn from_value( value: &SchemaValue, ) -> Result<RepeatableMapShape, FromSchemaError>
Source§impl IntoSchema for RepeatableMapShape
impl IntoSchema for RepeatableMapShape
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for RepeatableMapShape
impl PartialEq for RepeatableMapShape
Source§impl Serialize for RepeatableMapShape
impl Serialize for RepeatableMapShape
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 RepeatableMapShape
Auto Trait Implementations§
impl Freeze for RepeatableMapShape
impl RefUnwindSafe for RepeatableMapShape
impl Send for RepeatableMapShape
impl Sync for RepeatableMapShape
impl Unpin for RepeatableMapShape
impl UnsafeUnpin for RepeatableMapShape
impl UnwindSafe for RepeatableMapShape
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