pub struct ArraySchema {
pub item: SchemaNodeId,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub unique: bool,
pub contains: Option<SchemaNodeId>,
pub binding_style: Option<BindingStyle>,
}Expand description
Array type constraints
Spec: lines 426-439
@variants.array
item = .$types.type
min-length = .integer (optional)
max-length = .integer (optional)
unique = .boolean (optional)
contains = .$types.type (optional)
$ext-type.binding-style = .$types.binding-style (optional)Fields§
§item: SchemaNodeIdSchema for array elements (required)
min_length: Option<u32>Minimum number of elements
max_length: Option<u32>Maximum number of elements
unique: boolAll elements must be unique
contains: Option<SchemaNodeId>Array must contain at least one element matching this schema
binding_style: Option<BindingStyle>Binding style for formatting
Trait Implementations§
Source§impl Clone for ArraySchema
impl Clone for ArraySchema
Source§fn clone(&self) -> ArraySchema
fn clone(&self) -> ArraySchema
Returns a duplicate of the value. Read more
1.0.0 · 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 ArraySchema
impl Debug for ArraySchema
Source§impl PartialEq for ArraySchema
impl PartialEq for ArraySchema
impl StructuralPartialEq for ArraySchema
Auto Trait Implementations§
impl Freeze for ArraySchema
impl RefUnwindSafe for ArraySchema
impl Send for ArraySchema
impl Sync for ArraySchema
impl Unpin for ArraySchema
impl UnwindSafe for ArraySchema
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