pub struct PhraseAct {
pub definition: TypeDefinitionCommon,
pub event: EventDefinitionCommon,
pub name: String,
pub actor: String,
pub related_to: Vec<String>,
}
Expand description
Defines an automatic transition between Facts instantiated by a particular actor, e.g.,
Act murder
Actor citizen1
Related to citizen2
Terminates citizen2
Fields§
§definition: TypeDefinitionCommon
The common fields for this definition.
event: EventDefinitionCommon
The common fields for event-likes.
name: String
The name of the new act type.
actor: String
The actor that instantiates this event. Given as the identifier of a particular type (as in, this is a field to the parent type). Will default to author
if ommitted.
Any fields for this act other than actor
, basically.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhraseAct
impl<'de> Deserialize<'de> for PhraseAct
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 PhraseAct
impl RefUnwindSafe for PhraseAct
impl Send for PhraseAct
impl Sync for PhraseAct
impl Unpin for PhraseAct
impl UnwindSafe for PhraseAct
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