pub struct Property {Show 13 fields
pub title: Option<String>,
pub dtype: Option<DataType>,
pub default: Option<PrimitiveType>,
pub description: Option<String>,
pub term: Option<String>,
pub reference: Option<String>,
pub options: HashMap<String, PrimitiveType>,
pub items: Option<Item>,
pub one_of: Option<Vec<Item>>,
pub any_of: Option<Vec<Item>>,
pub all_of: Option<Vec<Item>>,
pub enum_values: Option<Vec<String>>,
pub examples: Vec<Value>,
}Fields§
§title: Option<String>§dtype: Option<DataType>§default: Option<PrimitiveType>§description: Option<String>§term: Option<String>§reference: Option<String>§options: HashMap<String, PrimitiveType>§items: Option<Item>§one_of: Option<Vec<Item>>§any_of: Option<Vec<Item>>§all_of: Option<Vec<Item>>§enum_values: Option<Vec<String>>§examples: Vec<Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Property
impl<'de> Deserialize<'de> for Property
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 TryFrom<&Attribute> for Property
impl TryFrom<&Attribute> for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
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