pub struct ArrayShapeProperty {
pub key: Option<ArrayShapePropertyKey>,
pub kind: TypeKind,
pub optional: bool,
}Expand description
Represents a property in an array shape type.
Fields§
§key: Option<ArrayShapePropertyKey>The key of the property.
kind: TypeKindThe type of the property.
optional: boolIndicates whether the property is optional.
Trait Implementations§
Source§impl Clone for ArrayShapeProperty
impl Clone for ArrayShapeProperty
Source§fn clone(&self) -> ArrayShapeProperty
fn clone(&self) -> ArrayShapeProperty
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 ArrayShapeProperty
impl Debug for ArrayShapeProperty
Source§impl<'de> Deserialize<'de> for ArrayShapeProperty
impl<'de> Deserialize<'de> for ArrayShapeProperty
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 ArrayShapeProperty
impl Hash for ArrayShapeProperty
Source§impl Ord for ArrayShapeProperty
impl Ord for ArrayShapeProperty
Source§fn cmp(&self, other: &ArrayShapeProperty) -> Ordering
fn cmp(&self, other: &ArrayShapeProperty) -> 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 ArrayShapeProperty
impl PartialEq for ArrayShapeProperty
Source§impl PartialOrd for ArrayShapeProperty
impl PartialOrd for ArrayShapeProperty
Source§impl Serialize for ArrayShapeProperty
impl Serialize for ArrayShapeProperty
impl Eq for ArrayShapeProperty
impl StructuralPartialEq for ArrayShapeProperty
Auto Trait Implementations§
impl Freeze for ArrayShapeProperty
impl RefUnwindSafe for ArrayShapeProperty
impl Send for ArrayShapeProperty
impl Sync for ArrayShapeProperty
impl Unpin for ArrayShapeProperty
impl UnwindSafe for ArrayShapeProperty
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