pub struct PropDef {
pub type_: PropType,
pub required: bool,
pub default: Option<Value>,
pub description: Option<String>,
}
Expand description
Component property definition
Fields§
§type_: PropType
§required: bool
§default: Option<Value>
§description: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PropDef
impl<'de> Deserialize<'de> for PropDef
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 PropDef
impl RefUnwindSafe for PropDef
impl Send for PropDef
impl Sync for PropDef
impl Unpin for PropDef
impl UnwindSafe for PropDef
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