pub struct ArraySchema<'r> {
pub items: Option<BooleanOrSchema<'r>>,
pub prefix_items: Option<Vec<YamlSchema<'r>>>,
pub contains: Option<YamlSchema<'r>>,
}Expand description
An array schema represents an array
Fields§
§items: Option<BooleanOrSchema<'r>>§prefix_items: Option<Vec<YamlSchema<'r>>>§contains: Option<YamlSchema<'r>>Trait Implementations§
Source§impl<'r> Debug for ArraySchema<'r>
impl<'r> Debug for ArraySchema<'r>
Source§impl<'r> Default for ArraySchema<'r>
impl<'r> Default for ArraySchema<'r>
Source§fn default() -> ArraySchema<'r>
fn default() -> ArraySchema<'r>
Returns the “default value” for a type. Read more
Source§impl Display for ArraySchema<'_>
impl Display for ArraySchema<'_>
Source§impl<'r> PartialEq for ArraySchema<'r>
impl<'r> PartialEq for ArraySchema<'r>
Source§impl<'r> TryFrom<&LinkedHashMap<MarkedYaml<'r>, MarkedYaml<'r>>> for ArraySchema<'r>
impl<'r> TryFrom<&LinkedHashMap<MarkedYaml<'r>, MarkedYaml<'r>>> for ArraySchema<'r>
Source§fn try_from(mapping: &AnnotatedMapping<'r, MarkedYaml<'r>>) -> Result<Self>
fn try_from(mapping: &AnnotatedMapping<'r, MarkedYaml<'r>>) -> Result<Self>
Performs the conversion.
Source§impl Validator for ArraySchema<'_>
impl Validator for ArraySchema<'_>
impl<'r> StructuralPartialEq for ArraySchema<'r>
Auto Trait Implementations§
impl<'r> Freeze for ArraySchema<'r>
impl<'r> RefUnwindSafe for ArraySchema<'r>
impl<'r> Send for ArraySchema<'r>
impl<'r> Sync for ArraySchema<'r>
impl<'r> Unpin for ArraySchema<'r>
impl<'r> UnsafeUnpin for ArraySchema<'r>
impl<'r> UnwindSafe for ArraySchema<'r>
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.