pub struct ParsedArraySchema {
pub item: NodeId,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub unique: bool,
pub contains: Option<NodeId>,
pub binding_style: Option<BindingStyle>,
}Expand description
Parsed array schema with NodeId references.
Fields§
§item: NodeIdSchema for array elements
min_length: Option<u32>Minimum number of elements
max_length: Option<u32>Maximum number of elements
unique: boolAll elements must be unique
contains: Option<NodeId>Array must contain at least one element matching this schema
binding_style: Option<BindingStyle>Binding style for formatting
Trait Implementations§
Source§impl Clone for ParsedArraySchema
impl Clone for ParsedArraySchema
Source§fn clone(&self) -> ParsedArraySchema
fn clone(&self) -> ParsedArraySchema
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 ParsedArraySchema
impl Debug for ParsedArraySchema
Source§impl<'doc> FromEure<'doc> for ParsedArraySchema
impl<'doc> FromEure<'doc> for ParsedArraySchema
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Auto Trait Implementations§
impl Freeze for ParsedArraySchema
impl RefUnwindSafe for ParsedArraySchema
impl Send for ParsedArraySchema
impl Sync for ParsedArraySchema
impl Unpin for ParsedArraySchema
impl UnwindSafe for ParsedArraySchema
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