Struct DownContributionEvent
pub struct DownContributionEvent {
pub time: u64,
pub agent: AgentId,
pub time_frame: u64,
}Expand description
Agent down contribution event (retired).
Fields§
§time: u64Time of registering the downed state.
agent: AgentIdAgent that entered downed state.
time_frame: u64Time since last 90% HP in milliseconds.
Trait Implementations§
§impl Clone for DownContributionEvent
impl Clone for DownContributionEvent
§fn clone(&self) -> DownContributionEvent
fn clone(&self) -> DownContributionEvent
Returns a duplicate 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 more§impl Debug for DownContributionEvent
impl Debug for DownContributionEvent
§impl<'de> Deserialize<'de> for DownContributionEvent
impl<'de> Deserialize<'de> for DownContributionEvent
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DownContributionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DownContributionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Extract for DownContributionEvent
impl Extract for DownContributionEvent
§impl Serialize for DownContributionEvent
impl Serialize for DownContributionEvent
§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 TryExtract for DownContributionEvent
impl TryExtract for DownContributionEvent
§fn can_extract(event: &Event) -> bool
fn can_extract(event: &Event) -> bool
Checks whether
Self can be extracted from the event.§fn try_extract(event: &Event) -> Option<Self>
fn try_extract(event: &Event) -> Option<Self>
Attempts to extract
Self from the combat event.Auto Trait Implementations§
impl Freeze for DownContributionEvent
impl RefUnwindSafe for DownContributionEvent
impl Send for DownContributionEvent
impl Sync for DownContributionEvent
impl Unpin for DownContributionEvent
impl UnwindSafe for DownContributionEvent
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