pub struct ObjectLifecycleState {
pub state_id: String,
pub name: String,
pub is_initial: bool,
pub is_terminal: bool,
pub valid_transitions: Vec<String>,
}Expand description
State in an object’s lifecycle.
Fields§
§state_id: StringState identifier
name: StringHuman-readable name
is_initial: boolIs this an initial state (object starts here)
is_terminal: boolIs this a terminal state (object ends here)
valid_transitions: Vec<String>Valid transitions from this state
Implementations§
Trait Implementations§
Source§impl Clone for ObjectLifecycleState
impl Clone for ObjectLifecycleState
Source§fn clone(&self) -> ObjectLifecycleState
fn clone(&self) -> ObjectLifecycleState
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectLifecycleState
impl Debug for ObjectLifecycleState
Source§impl<'de> Deserialize<'de> for ObjectLifecycleState
impl<'de> Deserialize<'de> for ObjectLifecycleState
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 ObjectLifecycleState
impl RefUnwindSafe for ObjectLifecycleState
impl Send for ObjectLifecycleState
impl Sync for ObjectLifecycleState
impl Unpin for ObjectLifecycleState
impl UnwindSafe for ObjectLifecycleState
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