pub struct Prop {
pub name: String,
pub doc: String,
pub ty: Type,
pub required: bool,
pub positional: bool,
pub data: bool,
pub identity: bool,
}Expand description
A typed value a component takes.
Fields§
§name: String§doc: String§ty: Type§required: boolWhether every instance gives it.
positional: boolWhether it may be given by position, in declaration order.
data: boolWhether its text is data the component reads (a key, an address, an emoji) rather than words it shows: a view’s literal given to it is never a message to translate.
identity: boolWhether it names the value among its siblings (a list’s chosen item, a row’s key): a filter given to it stands for the query it asks, which the host compares by.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prop
impl<'de> Deserialize<'de> for Prop
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 Prop
Auto Trait Implementations§
impl Forget for Prop
impl Freeze for Propwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const Type is !null: Freeze,
PhantomData<Type>: Freeze,
impl Move for Prop
impl RefUnwindSafe for Prop
impl Send for Prop
impl Sync for Prop
impl Unpin for Prop
impl UnsafeUnpin for Propwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
impl UnwindSafe for Prop
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