pub struct AttackLog {
pub text: String,
pub timestamp: i32,
pub action: AttackActionEnum,
pub icon: String,
pub attacker: Option<Attacker>,
pub defender: Option<Defender>,
pub attacker_item: Option<AttackerItem>,
}
Fields§
§text: String
§timestamp: i32
§action: AttackActionEnum
§icon: String
§attacker: Option<Attacker>
This value could be null in stealthed attacks.
defender: Option<Defender>
This value could be null in stealthed attacks.
attacker_item: Option<AttackerItem>
This field only exists if the attacker is stealthed and they used a temporary item.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AttackLog
impl<'de> Deserialize<'de> for AttackLog
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
impl StructuralPartialEq for AttackLog
Auto Trait Implementations§
impl Freeze for AttackLog
impl RefUnwindSafe for AttackLog
impl Send for AttackLog
impl Sync for AttackLog
impl Unpin for AttackLog
impl UnwindSafe for AttackLog
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