pub struct ArraySchema {
pub items: Option<BooleanOrSchema>,
pub prefix_items: Option<Vec<YamlSchema>>,
pub min_items: Option<usize>,
pub max_items: Option<usize>,
pub unique_items: Option<bool>,
pub contains: Option<YamlSchema>,
pub min_contains: Option<u64>,
pub max_contains: Option<u64>,
}Expand description
An array schema represents an array
Fields§
§items: Option<BooleanOrSchema>§prefix_items: Option<Vec<YamlSchema>>§min_items: Option<usize>§max_items: Option<usize>§unique_items: Option<bool>§contains: Option<YamlSchema>§min_contains: Option<u64>§max_contains: Option<u64>Trait Implementations§
Source§impl Debug for ArraySchema
impl Debug for ArraySchema
Source§impl Default for ArraySchema
impl Default for ArraySchema
Source§fn default() -> ArraySchema
fn default() -> ArraySchema
Returns the “default value” for a type. Read more
Source§impl Display for ArraySchema
impl Display for ArraySchema
Source§impl PartialEq for ArraySchema
impl PartialEq for ArraySchema
impl StructuralPartialEq for ArraySchema
Source§impl<'r> TryFrom<&LinkedHashMap<MarkedYaml<'r>, MarkedYaml<'r>>> for ArraySchema
impl<'r> TryFrom<&LinkedHashMap<MarkedYaml<'r>, MarkedYaml<'r>>> for ArraySchema
Source§fn try_from(mapping: &AnnotatedMapping<'r, MarkedYaml<'r>>) -> Result<Self>
fn try_from(mapping: &AnnotatedMapping<'r, MarkedYaml<'r>>) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ArraySchema
impl RefUnwindSafe for ArraySchema
impl Send for ArraySchema
impl Sync for ArraySchema
impl Unpin for ArraySchema
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.