pub struct AgentEffect {
pub time: u64,
pub source: AgentId,
pub target: AgentId,
pub effect_id: u32,
pub duration: u32,
pub tracking_id: u32,
}
Expand description
Effect information from an Event
with StateChange::EffectAgentCreate
.
Fields§
§time: u64
Time of registering the effect.
source: AgentId
Source of the effect.
target: AgentId
Target of the effect (if applicable).
effect_id: u32
Id of the effect.
Use to map to a GUID using StateChange::IdToGUID
events.
duration: u32
Duration of the effect in milliseconds.
tracking_id: u32
Trackable id for effect remove.
Trait Implementations§
Source§impl Clone for AgentEffect
impl Clone for AgentEffect
Source§fn clone(&self) -> AgentEffect
fn clone(&self) -> AgentEffect
Returns a copy 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 AgentEffect
impl Debug for AgentEffect
Source§impl<'de> Deserialize<'de> for AgentEffect
impl<'de> Deserialize<'de> for AgentEffect
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
Source§impl Extract for AgentEffect
impl Extract for AgentEffect
Source§impl Serialize for AgentEffect
impl Serialize for AgentEffect
Source§impl TryExtract for AgentEffect
impl TryExtract for AgentEffect
Auto Trait Implementations§
impl Freeze for AgentEffect
impl RefUnwindSafe for AgentEffect
impl Send for AgentEffect
impl Sync for AgentEffect
impl Unpin for AgentEffect
impl UnwindSafe for AgentEffect
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