pub struct PropertyDef {
pub name: String,
pub prop_type: PropType,
pub required: bool,
pub default: Option<Value>,
pub min: Option<f64>,
pub max: Option<f64>,
pub show_if: Option<String>,
pub enum_type: Option<String>,
pub ref_type: Option<String>,
pub item_type: Option<String>,
pub embedded_type: Option<String>,
}Expand description
Definition of a property (from schema)
Fields§
§name: String§prop_type: PropType§required: bool§default: Option<Value>§min: Option<f64>§max: Option<f64>§show_if: Option<String>§enum_type: Option<String>§ref_type: Option<String>§item_type: Option<String>§embedded_type: Option<String>Trait Implementations§
Source§impl Clone for PropertyDef
impl Clone for PropertyDef
Source§fn clone(&self) -> PropertyDef
fn clone(&self) -> PropertyDef
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 PropertyDef
impl Debug for PropertyDef
Source§impl<'de> Deserialize<'de> for PropertyDef
impl<'de> Deserialize<'de> for PropertyDef
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 PropertyDef
impl RefUnwindSafe for PropertyDef
impl Send for PropertyDef
impl Sync for PropertyDef
impl Unpin for PropertyDef
impl UnsafeUnpin for PropertyDef
impl UnwindSafe for PropertyDef
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