pub struct PropSpec {
pub name: String,
pub prop_type: PropType,
pub optional: bool,
pub nullable: bool,
pub default_value: Option<DefaultValue>,
pub doc: Option<String>,
}Expand description
Component prop specification.
Fields§
§name: String§prop_type: PropType§optional: bool§nullable: bool§default_value: Option<DefaultValue>§doc: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PropSpec
impl<'de> Deserialize<'de> for PropSpec
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
impl StructuralPartialEq for PropSpec
Auto Trait Implementations§
impl Forget for PropSpec
impl Freeze for PropSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<i32>: Freeze,
*const PropType is !null: Freeze,
PhantomData<PropType>: Freeze,
PhantomData<ObjectField>: Freeze,
PhantomData<ParamSpec>: Freeze,
impl Move for PropSpec
impl RefUnwindSafe for PropSpec
impl Send for PropSpec
impl Sync for PropSpec
impl Unpin for PropSpec
impl UnsafeUnpin for PropSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
*const PropType is !null: UnsafeUnpin,
PhantomData<PropType>: UnsafeUnpin,
PhantomData<ObjectField>: UnsafeUnpin,
PhantomData<ParamSpec>: UnsafeUnpin,
impl UnwindSafe for PropSpec
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