pub enum PropType {
Show 18 variants
Bool,
Int32,
Float,
Double,
String,
Color,
ImageSource,
Point,
EdgeInsets,
Dimension,
StringEnum {
variants: Vec<String>,
},
IntEnum {
variants: Vec<i32>,
},
Array {
item: Box<PropType>,
},
Object {
fields: Vec<ObjectField>,
},
Mixed,
Void,
Promise {
inner: Box<PropType>,
},
Callback {
params: Vec<ParamSpec>,
},
}Expand description
Typed value representation shared by RN Fabric props, event payloads, commands, and TurboModules.
Variants§
Bool
Int32
Float
Double
String
Color
ImageSource
Point
EdgeInsets
Dimension
StringEnum
IntEnum
Array
Object
Fields
§
fields: Vec<ObjectField>Mixed
Void
Promise
Callback
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PropType
impl<'de> Deserialize<'de> for PropType
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 PropType
Auto Trait Implementations§
impl Forget for PropType
impl Freeze for PropTypewhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<i32>: Freeze,
*const PropType is !null: Freeze,
PhantomData<PropType>: Freeze,
PhantomData<ObjectField>: Freeze,
PhantomData<ParamSpec>: Freeze,
impl Move for PropType
impl RefUnwindSafe for PropType
impl Send for PropType
impl Sync for PropType
impl Unpin for PropType
impl UnsafeUnpin for PropTypewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<i32>: UnsafeUnpin,
*const PropType is !null: UnsafeUnpin,
PhantomData<PropType>: UnsafeUnpin,
PhantomData<ObjectField>: UnsafeUnpin,
PhantomData<ParamSpec>: UnsafeUnpin,
impl UnwindSafe for PropType
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