pub struct ScenarioEvent {
pub template: String,
pub context: HashMap<String, Value>,
pub rst_relation: Option<String>,
}Fields§
§template: String§context: HashMap<String, Value>Free-form context map. Values can be strings, numbers, bools, or arrays of strings.
rst_relation: Option<String>RST relation hint (Elaboration, Contrast, Result, etc.). String form for TOML friendliness.
Trait Implementations§
Source§impl Clone for ScenarioEvent
impl Clone for ScenarioEvent
Source§fn clone(&self) -> ScenarioEvent
fn clone(&self) -> ScenarioEvent
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 ScenarioEvent
impl Debug for ScenarioEvent
Source§impl<'de> Deserialize<'de> for ScenarioEvent
impl<'de> Deserialize<'de> for ScenarioEvent
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 ScenarioEvent
impl RefUnwindSafe for ScenarioEvent
impl Send for ScenarioEvent
impl Sync for ScenarioEvent
impl Unpin for ScenarioEvent
impl UnsafeUnpin for ScenarioEvent
impl UnwindSafe for ScenarioEvent
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