pub struct RunMachine {
pub recurring_role: Option<String>,
pub limits: BTreeMap<String, Expr>,
pub roles: BTreeMap<String, Run>,
pub states: BTreeMap<String, Status>,
pub initial: String,
pub on: BTreeMap<String, Vec<Transition>>,
pub outcomes: BTreeMap<String, Vec<Transition>>,
}Expand description
The independently supervised run machine. Its events never become card notices.
Fields§
§recurring_role: Option<String>Run specification selected for a card with an Every interval.
limits: BTreeMap<String, Expr>Shared supervision limits, overridden by individual role specifications.
roles: BTreeMap<String, Run>Named run specifications, selected by a card status or a recurring role.
states: BTreeMap<String, Status>Run states and their entry, exit and event rules.
initial: StringInitial run state.
on: BTreeMap<String, Vec<Transition>>Supervision shared by all run states.
outcomes: BTreeMap<String, Vec<Transition>>A run outcome emits this card verb (the sole link between machines).
Trait Implementations§
Source§impl Clone for RunMachine
impl Clone for RunMachine
Source§fn clone(&self) -> RunMachine
fn clone(&self) -> RunMachine
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 RunMachine
impl Debug for RunMachine
Source§impl Default for RunMachine
impl Default for RunMachine
Source§fn default() -> RunMachine
fn default() -> RunMachine
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunMachine
impl<'de> Deserialize<'de> for RunMachine
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunMachine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunMachine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunMachine
Source§impl JsonSchema for RunMachine
impl JsonSchema for RunMachine
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RunMachine
impl PartialEq for RunMachine
Source§impl Serialize for RunMachine
impl Serialize for RunMachine
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RunMachine
Auto Trait Implementations§
impl Freeze for RunMachine
impl RefUnwindSafe for RunMachine
impl Send for RunMachine
impl Sync for RunMachine
impl Unpin for RunMachine
impl UnsafeUnpin for RunMachine
impl UnwindSafe for RunMachine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.