pub struct ScenarioMark {
pub id: String,
pub state: ScenarioState,
pub turned_by: Option<String>,
pub contract: Option<String>,
}Expand description
One scenario of a story.
Fields§
§id: StringIts id (US3-1).
state: ScenarioStateIts state at the branch’s tip (red before the oracle exists).
turned_by: Option<String>The task whose tick turned it green, worded as it is now.
contract: Option<String>What must hold, as the oracle states it (given → must hold).
Trait Implementations§
Source§impl Clone for ScenarioMark
impl Clone for ScenarioMark
Source§impl Debug for ScenarioMark
impl Debug for ScenarioMark
Source§impl<'de> Deserialize<'de> for ScenarioMark
impl<'de> Deserialize<'de> for ScenarioMark
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 ScenarioMark
Source§impl JsonSchema for ScenarioMark
impl JsonSchema for ScenarioMark
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 ScenarioMark
impl PartialEq for ScenarioMark
Source§impl Serialize for ScenarioMark
impl Serialize for ScenarioMark
impl StructuralPartialEq for ScenarioMark
Auto Trait Implementations§
impl Freeze for ScenarioMark
impl RefUnwindSafe for ScenarioMark
impl Send for ScenarioMark
impl Sync for ScenarioMark
impl Unpin for ScenarioMark
impl UnsafeUnpin for ScenarioMark
impl UnwindSafe for ScenarioMark
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