pub struct MapSchema {
pub key: SchemaNodeId,
pub value: SchemaNodeId,
pub min_size: Option<u32>,
pub max_size: Option<u32>,
}Expand description
Map type constraints
Spec: lines 453-459
@variants.map
key = .$types.type
value = .$types.type
min-size = .integer (optional)
max-size = .integer (optional)Fields§
§key: SchemaNodeIdSchema for keys
value: SchemaNodeIdSchema for values
min_size: Option<u32>Minimum number of key-value pairs
max_size: Option<u32>Maximum number of key-value pairs
Trait Implementations§
impl StructuralPartialEq for MapSchema
Auto Trait Implementations§
impl Freeze for MapSchema
impl RefUnwindSafe for MapSchema
impl Send for MapSchema
impl Sync for MapSchema
impl Unpin for MapSchema
impl UnwindSafe for MapSchema
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