pub enum ArrayItems {
RefOrSchema(Box<RefOr<Schema>>),
False,
}
Expand description
Represents Array
items in JSON Schema Array.
Variants§
RefOrSchema(Box<RefOr<Schema>>)
Defines Array::items
as [RefOr::T(Schema)
]. This is the default for Array
.
False
Defines Array::items
as false
indicating that no extra items are allowed to the
Array
. This can be used together with Array::prefix_items
to disallow additional
items in Array
.
Trait Implementations§
Source§impl Clone for ArrayItems
impl Clone for ArrayItems
Source§fn clone(&self) -> ArrayItems
fn clone(&self) -> ArrayItems
Returns a copy 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 Default for ArrayItems
impl Default for ArrayItems
Source§impl<'de> Deserialize<'de> for ArrayItems
impl<'de> Deserialize<'de> for ArrayItems
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AllOfBuilder> for ArrayItems
impl From<AllOfBuilder> for ArrayItems
Source§fn from(value: AllOfBuilder) -> Self
fn from(value: AllOfBuilder) -> Self
Converts to this type from the input type.
Source§impl From<AnyOfBuilder> for ArrayItems
impl From<AnyOfBuilder> for ArrayItems
Source§fn from(value: AnyOfBuilder) -> Self
fn from(value: AnyOfBuilder) -> Self
Converts to this type from the input type.
Source§impl From<ArrayBuilder> for ArrayItems
impl From<ArrayBuilder> for ArrayItems
Source§fn from(value: ArrayBuilder) -> Self
fn from(value: ArrayBuilder) -> Self
Converts to this type from the input type.
Source§impl From<Object> for ArrayItems
impl From<Object> for ArrayItems
Source§impl From<ObjectBuilder> for ArrayItems
impl From<ObjectBuilder> for ArrayItems
Source§fn from(value: ObjectBuilder) -> Self
fn from(value: ObjectBuilder) -> Self
Converts to this type from the input type.
Source§impl From<OneOfBuilder> for ArrayItems
impl From<OneOfBuilder> for ArrayItems
Source§fn from(value: OneOfBuilder) -> Self
fn from(value: OneOfBuilder) -> Self
Converts to this type from the input type.
Source§impl From<Ref> for ArrayItems
impl From<Ref> for ArrayItems
Source§impl From<RefBuilder> for ArrayItems
impl From<RefBuilder> for ArrayItems
Source§fn from(value: RefBuilder) -> Self
fn from(value: RefBuilder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ArrayItems
impl PartialEq for ArrayItems
Source§impl Serialize for ArrayItems
impl Serialize for ArrayItems
impl StructuralPartialEq for ArrayItems
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