pub struct EventMapping {
pub event_type: String,
pub narrative_fn: NarrativeFunction,
}Expand description
Event-type to narrative-function mapping entry.
Fields§
§event_type: String§narrative_fn: NarrativeFunctionTrait Implementations§
Source§impl Clone for EventMapping
impl Clone for EventMapping
Source§fn clone(&self) -> EventMapping
fn clone(&self) -> EventMapping
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 EventMapping
impl Debug for EventMapping
Source§impl<'de> Deserialize<'de> for EventMapping
impl<'de> Deserialize<'de> for EventMapping
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 EventMapping
impl RefUnwindSafe for EventMapping
impl Send for EventMapping
impl Sync for EventMapping
impl Unpin for EventMapping
impl UnsafeUnpin for EventMapping
impl UnwindSafe for EventMapping
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