pub struct AffectHistory {
pub agent: String,
pub states: Vec<AffectHistoryEntry>,
}Expand description
Full affect history for a single agent.
Fields§
§agent: StringThe agent this history belongs to.
states: Vec<AffectHistoryEntry>Ordered list of affect state snapshots.
Trait Implementations§
Source§impl Clone for AffectHistory
impl Clone for AffectHistory
Source§fn clone(&self) -> AffectHistory
fn clone(&self) -> AffectHistory
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 AffectHistory
impl Debug for AffectHistory
Source§impl<'de> Deserialize<'de> for AffectHistory
impl<'de> Deserialize<'de> for AffectHistory
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 AffectHistory
impl RefUnwindSafe for AffectHistory
impl Send for AffectHistory
impl Sync for AffectHistory
impl Unpin for AffectHistory
impl UnsafeUnpin for AffectHistory
impl UnwindSafe for AffectHistory
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