pub struct PropDef {
pub name: String,
pub prop_type: Option<String>,
pub required: bool,
}Expand description
A single prop declaration from defineProps({ ... }).
Fields§
§name: String§prop_type: Option<String>The declared type: “String”, “Number”, “Boolean”, “Array”, “Object”, or None.
required: boolTrait Implementations§
impl StructuralPartialEq for PropDef
Auto Trait Implementations§
impl Freeze for PropDef
impl RefUnwindSafe for PropDef
impl Send for PropDef
impl Sync for PropDef
impl Unpin for PropDef
impl UnsafeUnpin 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