pub struct ArrayLiteral {
pub items: Option<Box<Schema>>,
}
Expand description
The constraints that may be applied to an array literal schema.
Fields§
§items: Option<Box<Schema>>
The schema that the items in the array must match.
Trait Implementations§
Source§impl Clone for ArrayLiteral
impl Clone for ArrayLiteral
Source§fn clone(&self) -> ArrayLiteral
fn clone(&self) -> ArrayLiteral
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 ArrayLiteral
impl Debug for ArrayLiteral
Source§impl<'de> Deserialize<'de> for ArrayLiteral
impl<'de> Deserialize<'de> for ArrayLiteral
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
Auto Trait Implementations§
impl Freeze for ArrayLiteral
impl RefUnwindSafe for ArrayLiteral
impl Send for ArrayLiteral
impl Sync for ArrayLiteral
impl Unpin for ArrayLiteral
impl UnwindSafe for ArrayLiteral
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