pub enum RoleAction {
Step(StepId),
Transition(TransitionTrigger),
RequestIntervention,
RespondToIntervention,
}Variants§
Implementations§
Source§impl RoleAction
impl RoleAction
pub fn step(step_id: StepId) -> Self
pub fn transition(trigger: TransitionTrigger) -> Self
pub const fn request_intervention() -> Self
pub const fn respond_to_intervention() -> Self
pub fn from_capability_label(label: &str) -> Option<Self>
pub fn step_id(&self) -> Option<&StepId>
pub fn transition_trigger(&self) -> Option<&TransitionTrigger>
Trait Implementations§
Source§impl Clone for RoleAction
impl Clone for RoleAction
Source§impl Debug for RoleAction
impl Debug for RoleAction
Source§impl<'de> Deserialize<'de> for RoleAction
impl<'de> Deserialize<'de> for RoleAction
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 Eq for RoleAction
Source§impl Hash for RoleAction
impl Hash for RoleAction
Source§impl Ord for RoleAction
impl Ord for RoleAction
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RoleAction
impl PartialEq for RoleAction
Source§impl PartialOrd for RoleAction
impl PartialOrd for RoleAction
Source§impl Serialize for RoleAction
impl Serialize for RoleAction
impl StructuralPartialEq for RoleAction
Auto Trait Implementations§
impl Freeze for RoleAction
impl RefUnwindSafe for RoleAction
impl Send for RoleAction
impl Sync for RoleAction
impl Unpin for RoleAction
impl UnsafeUnpin for RoleAction
impl UnwindSafe for RoleAction
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