pub enum PropertyInstance {
Null,
Boolean,
Integer {
criteria: NumberCriteria,
},
Object {
properties: HashMap<String, Property>,
required: Option<Vec<String>>,
},
Array {
items: Box<PropertyInstance>,
},
Number {
criteria: NumberCriteria,
},
String,
}
Expand description
Represents the Instance Data Model
Variants§
Null
Boolean
Integer
Fields
§
criteria: NumberCriteria
Object
Array
Fields
§
items: Box<PropertyInstance>
Number
Fields
§
criteria: NumberCriteria
String
Implementations§
Trait Implementations§
source§impl Clone for PropertyInstance
impl Clone for PropertyInstance
source§fn clone(&self) -> PropertyInstance
fn clone(&self) -> PropertyInstance
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 Debug for PropertyInstance
impl Debug for PropertyInstance
source§impl<'de> Deserialize<'de> for PropertyInstance
impl<'de> Deserialize<'de> for PropertyInstance
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 PartialEq for PropertyInstance
impl PartialEq for PropertyInstance
source§fn eq(&self, other: &PropertyInstance) -> bool
fn eq(&self, other: &PropertyInstance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PropertyInstance
impl Serialize for PropertyInstance
impl StructuralPartialEq for PropertyInstance
Auto Trait Implementations§
impl RefUnwindSafe for PropertyInstance
impl Send for PropertyInstance
impl Sync for PropertyInstance
impl Unpin for PropertyInstance
impl UnwindSafe for PropertyInstance
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