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 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 Default for ArrayItems
impl Default for ArrayItems
Source§fn default() -> ArrayItems
fn default() -> ArrayItems
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArrayItems
impl<'de> Deserialize<'de> for ArrayItems
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArrayItems, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArrayItems, <__D as Deserializer<'de>>::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) -> ArrayItems
fn from(value: AllOfBuilder) -> ArrayItems
Converts to this type from the input type.
Source§impl From<AnyOfBuilder> for ArrayItems
impl From<AnyOfBuilder> for ArrayItems
Source§fn from(value: AnyOfBuilder) -> ArrayItems
fn from(value: AnyOfBuilder) -> ArrayItems
Converts to this type from the input type.
Source§impl From<ArrayBuilder> for ArrayItems
impl From<ArrayBuilder> for ArrayItems
Source§fn from(value: ArrayBuilder) -> ArrayItems
fn from(value: ArrayBuilder) -> ArrayItems
Converts to this type from the input type.
Source§impl From<Object> for ArrayItems
impl From<Object> for ArrayItems
Source§fn from(value: Object) -> ArrayItems
fn from(value: Object) -> ArrayItems
Converts to this type from the input type.
Source§impl From<ObjectBuilder> for ArrayItems
impl From<ObjectBuilder> for ArrayItems
Source§fn from(value: ObjectBuilder) -> ArrayItems
fn from(value: ObjectBuilder) -> ArrayItems
Converts to this type from the input type.
Source§impl From<OneOfBuilder> for ArrayItems
impl From<OneOfBuilder> for ArrayItems
Source§fn from(value: OneOfBuilder) -> ArrayItems
fn from(value: OneOfBuilder) -> ArrayItems
Converts to this type from the input type.
Source§impl From<Ref> for ArrayItems
impl From<Ref> for ArrayItems
Source§fn from(value: Ref) -> ArrayItems
fn from(value: Ref) -> ArrayItems
Converts to this type from the input type.
Source§impl From<RefBuilder> for ArrayItems
impl From<RefBuilder> for ArrayItems
Source§fn from(value: RefBuilder) -> ArrayItems
fn from(value: RefBuilder) -> ArrayItems
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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