pub struct ArrayItems(/* private fields */);
Expand description
Value MUST be an object and not an array. Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema. items MUST be present if the type is array.
see also: https://swagger.io/docs/specification/data-models/data-types/
Implementations§
Source§impl ArrayItems
impl ArrayItems
pub fn new(case: SchemaCase) -> Self
pub fn from_yaml_map(map: YamlMap) -> Result<Self>
Trait Implementations§
Source§impl Clone for ArrayItems
impl Clone for ArrayItems
Source§fn clone(&self) -> ArrayItems
fn clone(&self) -> ArrayItems
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 ArrayItems
impl Debug for ArrayItems
Source§impl From<ArrayItems> for SchemaCase
impl From<ArrayItems> for SchemaCase
Source§fn from(xs: ArrayItems) -> Self
fn from(xs: ArrayItems) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayItems
impl RefUnwindSafe for ArrayItems
impl Send for ArrayItems
impl Sync for ArrayItems
impl Unpin for ArrayItems
impl UnwindSafe for ArrayItems
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