pub struct ArrayShape {
pub properties: Vec<ArrayShapeProperty>,
pub additional_properties: Option<(Box<TypeKind>, Box<TypeKind>)>,
}Expand description
Represents an array shape type, which is an array with specified keys and types.
Fields§
§properties: Vec<ArrayShapeProperty>The properties (key-value pairs) of the array shape.
additional_properties: Option<(Box<TypeKind>, Box<TypeKind>)>Additional properties specified by key and value types.
For example, ...array<array-key, mixed> allows additional entries beyond the specified properties.
Trait Implementations§
Source§impl Clone for ArrayShape
impl Clone for ArrayShape
Source§fn clone(&self) -> ArrayShape
fn clone(&self) -> ArrayShape
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 ArrayShape
impl Debug for ArrayShape
Source§impl<'de> Deserialize<'de> for ArrayShape
impl<'de> Deserialize<'de> for ArrayShape
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 Hash for ArrayShape
impl Hash for ArrayShape
Source§impl Ord for ArrayShape
impl Ord for ArrayShape
Source§fn cmp(&self, other: &ArrayShape) -> Ordering
fn cmp(&self, other: &ArrayShape) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ArrayShape
impl PartialEq for ArrayShape
Source§impl PartialOrd for ArrayShape
impl PartialOrd for ArrayShape
Source§impl Serialize for ArrayShape
impl Serialize for ArrayShape
impl Eq for ArrayShape
impl StructuralPartialEq for ArrayShape
Auto Trait Implementations§
impl Freeze for ArrayShape
impl RefUnwindSafe for ArrayShape
impl Send for ArrayShape
impl Sync for ArrayShape
impl Unpin for ArrayShape
impl UnwindSafe for ArrayShape
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