Struct TransformationEvent
pub struct TransformationEvent {
pub time: u64,
pub source: AgentId,
pub target: AgentId,
pub transformation_id: u32,
}Expand description
Transformation change.
Fields§
§time: u64Time of registering the event.
source: AgentIdAgent that caused the event.
target: AgentIdAgent the event happened to.
transformation_id: u32Id of the transformation.
Use to map to a GUID using StateChange::IdToGUID events.
Trait Implementations§
§impl Clone for TransformationEvent
impl Clone for TransformationEvent
§fn clone(&self) -> TransformationEvent
fn clone(&self) -> TransformationEvent
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 TransformationEvent
impl Debug for TransformationEvent
§impl<'de> Deserialize<'de> for TransformationEvent
impl<'de> Deserialize<'de> for TransformationEvent
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransformationEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransformationEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Extract for TransformationEvent
impl Extract for TransformationEvent
§impl Serialize for TransformationEvent
impl Serialize for TransformationEvent
§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 TransformationEvent
impl TryExtract for TransformationEvent
§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 TransformationEvent
impl RefUnwindSafe for TransformationEvent
impl Send for TransformationEvent
impl Sync for TransformationEvent
impl Unpin for TransformationEvent
impl UnsafeUnpin for TransformationEvent
impl UnwindSafe for TransformationEvent
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