pub struct StateDef {
pub initial_value: Value,
pub type_: PropType,
pub description: Option<String>,
}
Expand description
Component state definition
Fields§
§initial_value: Value
§type_: PropType
§description: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StateDef
impl<'de> Deserialize<'de> for StateDef
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
Auto Trait Implementations§
impl Freeze for StateDef
impl RefUnwindSafe for StateDef
impl Send for StateDef
impl Sync for StateDef
impl Unpin for StateDef
impl UnwindSafe for StateDef
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