pub struct LifecycleTransition {
pub from: String,
pub to: String,
pub event: String,
}Expand description
An event-driven transition between states.
Fields§
§from: StringSource state name.
to: StringTarget state name.
event: StringEvent that triggers the transition.
Trait Implementations§
Source§impl Clone for LifecycleTransition
impl Clone for LifecycleTransition
Source§fn clone(&self) -> LifecycleTransition
fn clone(&self) -> LifecycleTransition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleTransition
impl Debug for LifecycleTransition
Source§impl<'de> Deserialize<'de> for LifecycleTransition
impl<'de> Deserialize<'de> for LifecycleTransition
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
Source§impl PartialEq for LifecycleTransition
impl PartialEq for LifecycleTransition
Source§impl Serialize for LifecycleTransition
impl Serialize for LifecycleTransition
impl StructuralPartialEq for LifecycleTransition
Auto Trait Implementations§
impl Freeze for LifecycleTransition
impl RefUnwindSafe for LifecycleTransition
impl Send for LifecycleTransition
impl Sync for LifecycleTransition
impl Unpin for LifecycleTransition
impl UnsafeUnpin for LifecycleTransition
impl UnwindSafe for LifecycleTransition
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