pub enum PropType {
}Expand description
The type a described component’s prop takes, as the catalogue declares it. The type of a prop, an event’s value, a binding or a piece of state: the language’s types.
Variants§
Text
Int
Float
Bool
Actor
A member: a person or an agent.
Resource
A resource the component presents.
Time
A moment: a date and a time of day, as the language’s Time.
Icon
One of the platform’s icons, by its kebab-case name.
Picture
A picture: where its bytes are read from, and what it shows the person.
File
A file a person handed the window — dropped on it, or chosen — as the runtime’s File:
what it is called, its media type, its size and where its bytes are.
RichText
Rich text, with how its references read for the person reading it.
Choice
One of a closed set of cases: the design system’s roles and tokens.
Option(Box<Type>)
List(Box<Type>)
Set(Box<Type>)
Distinct values in no order the component relies on: who reacted with an emoji.
Map
Values by key: the people who reacted, by emoji.
Action
An action offered to the person, as a control shows it: what it is called, its icon and role, and what choosing it runs (an event of the instance, never a closure).
Cases
One case of the catalogue’s closed set name whose cases carry fields: a drawing’s shape.
Enum
A case of one of the app’s own enums, by its name: which cases it holds is the field the binding names, so a description says only that it takes such a field.
Link
A record a view names, as the component offers it: what refers to it, and how it reads for the person now. What the component writes names the record, never the text, so a record renamed later reads by its new title everywhere it was linked.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Type, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Type, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Type
Source§impl Serialize for Type
impl Serialize for Type
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Forget for Type
impl Freeze for Typewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const Type is !null: Freeze,
PhantomData<Type>: Freeze,
impl Move for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Typewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
impl UnwindSafe for Type
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more