pub struct LexiconProperty {
pub prop_type: String,
pub description: Option<String>,
pub format: Option<String>,
pub max_length: Option<u64>,
pub minimum: Option<i64>,
pub maximum: Option<i64>,
pub default: Option<Value>,
pub items: Option<Box<LexiconProperty>>,
pub ref_: Option<String>,
}Expand description
A single property in an object schema.
Fields§
§prop_type: StringThe type of this property.
description: Option<String>Description.
format: Option<String>Format hint (e.g. “datetime”, “uri”).
max_length: Option<u64>Maximum length.
minimum: Option<i64>Minimum value.
maximum: Option<i64>Maximum value.
default: Option<Value>Default value.
items: Option<Box<LexiconProperty>>Items type (for arrays).
ref_: Option<String>Reference to another type.
Trait Implementations§
Source§impl Clone for LexiconProperty
impl Clone for LexiconProperty
Source§fn clone(&self) -> LexiconProperty
fn clone(&self) -> LexiconProperty
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 LexiconProperty
impl Debug for LexiconProperty
Source§impl<'de> Deserialize<'de> for LexiconProperty
impl<'de> Deserialize<'de> for LexiconProperty
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 LexiconProperty
impl RefUnwindSafe for LexiconProperty
impl Send for LexiconProperty
impl Sync for LexiconProperty
impl Unpin for LexiconProperty
impl UnsafeUnpin for LexiconProperty
impl UnwindSafe for LexiconProperty
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