pub struct TransitionContract {
pub target: String,
pub description: Option<String>,
pub has_guard: bool,
}Expand description
A phase transition declaration.
Fields§
§target: StringTarget phase.
description: Option<String>Human-readable transition description, when provided.
has_guard: boolGuards are closures, so this marks that a guard exists.
Trait Implementations§
Source§impl Clone for TransitionContract
impl Clone for TransitionContract
Source§fn clone(&self) -> TransitionContract
fn clone(&self) -> TransitionContract
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 TransitionContract
impl Debug for TransitionContract
Source§impl<'de> Deserialize<'de> for TransitionContract
impl<'de> Deserialize<'de> for TransitionContract
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 TransitionContract
impl RefUnwindSafe for TransitionContract
impl Send for TransitionContract
impl Sync for TransitionContract
impl Unpin for TransitionContract
impl UnwindSafe for TransitionContract
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