pub struct ArraySchema {
pub items: Option<BoolOrTypedSchema>,
pub prefix_items: Option<Vec<YamlSchema>>,
pub contains: Option<Box<YamlSchema>>,
}Expand description
An array schema represents an array
Fields§
§items: Option<BoolOrTypedSchema>§prefix_items: Option<Vec<YamlSchema>>§contains: Option<Box<YamlSchema>>Implementations§
Source§impl ArraySchema
impl ArraySchema
pub fn with_items_typed(typed_schema: TypedSchema) -> Self
pub fn with_items_ref(reference: Reference) -> Self
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
Source§impl SchemaMetadata for ArraySchema
impl SchemaMetadata for ArraySchema
fn get_accepted_keys() -> &'static [&'static str]
Source§impl TryFrom<&LinkedHashMap<MarkedYaml<'_>, MarkedYaml<'_>>> for ArraySchema
impl TryFrom<&LinkedHashMap<MarkedYaml<'_>, MarkedYaml<'_>>> for ArraySchema
Source§fn try_from(mapping: &AnnotatedMapping<'_, MarkedYaml<'_>>) -> Result<Self>
fn try_from(mapping: &AnnotatedMapping<'_, MarkedYaml<'_>>) -> Result<Self>
Performs the conversion.
Source§impl Validator for ArraySchema
impl Validator 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
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.