pub struct UnderstoodAct {
pub id: ActId,
pub action: ActAction,
pub target: ActTarget,
pub arguments: BTreeMap<String, UnderstoodArgument>,
pub words: WordRange,
pub depends_on: Vec<ActId>,
pub status: ActStatus,
}Expand description
One act the turn asks for.
Fields§
§id: ActIdIts identifier.
action: ActActionWhat it does.
target: ActTargetWhat it applies to.
arguments: BTreeMap<String, UnderstoodArgument>Its arguments, by name.
words: WordRangeThe words of the unit that asked for it.
depends_on: Vec<ActId>Acts of the same turn it needs first.
status: ActStatusWhether it may proceed.
Implementations§
Source§impl UnderstoodAct
impl UnderstoodAct
Trait Implementations§
Source§impl Clone for UnderstoodAct
impl Clone for UnderstoodAct
Source§fn clone(&self) -> UnderstoodAct
fn clone(&self) -> UnderstoodAct
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 UnderstoodAct
impl Debug for UnderstoodAct
Source§impl<'de> Deserialize<'de> for UnderstoodAct
impl<'de> Deserialize<'de> for UnderstoodAct
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnderstoodAct, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UnderstoodAct, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnderstoodAct
Source§impl PartialEq for UnderstoodAct
impl PartialEq for UnderstoodAct
Source§impl Serialize for UnderstoodAct
impl Serialize for UnderstoodAct
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 UnderstoodAct
Auto Trait Implementations§
impl Freeze for UnderstoodAct
impl RefUnwindSafe for UnderstoodAct
impl Send for UnderstoodAct
impl Sync for UnderstoodAct
impl Unpin for UnderstoodAct
impl UnsafeUnpin for UnderstoodAct
impl UnwindSafe for UnderstoodAct
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.