Struct evtc::agent::AttackTargetEvent
source · pub struct AttackTargetEvent {
pub time: u64,
pub agent: AgentId,
pub parent: AgentId,
pub targetable: i32,
}
Expand description
Agent is now an attack target.
Fields§
§time: u64
Time of registering the attack target.
agent: AgentId
Agent that is an attack target.
parent: AgentId
Parent gadget agent.
targetable: i32
Current targetable state.
Trait Implementations§
source§impl Clone for AttackTargetEvent
impl Clone for AttackTargetEvent
source§fn clone(&self) -> AttackTargetEvent
fn clone(&self) -> AttackTargetEvent
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 AttackTargetEvent
impl Debug for AttackTargetEvent
source§impl<'de> Deserialize<'de> for AttackTargetEvent
impl<'de> Deserialize<'de> for AttackTargetEvent
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 AttackTargetEvent
impl Extract for AttackTargetEvent
source§impl Serialize for AttackTargetEvent
impl Serialize for AttackTargetEvent
source§impl TryExtract for AttackTargetEvent
impl TryExtract for AttackTargetEvent
Auto Trait Implementations§
impl Freeze for AttackTargetEvent
impl RefUnwindSafe for AttackTargetEvent
impl Send for AttackTargetEvent
impl Sync for AttackTargetEvent
impl Unpin for AttackTargetEvent
impl UnwindSafe for AttackTargetEvent
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