pub struct AttackSimplified {
pub id: AttackId,
pub code: AttackCode,
pub started: i32,
pub ended: i32,
pub attacker: Option<AttackPlayerSimplified>,
pub defender: AttackPlayerSimplified,
pub result: FactionAttackResult,
pub respect_gain: f64,
pub respect_loss: f64,
}
Fields§
§id: AttackId
§code: AttackCode
§started: i32
Attack start timestamp.
ended: i32
Attack end timestamp.
attacker: Option<AttackPlayerSimplified>
§defender: AttackPlayerSimplified
§result: FactionAttackResult
§respect_gain: f64
§respect_loss: f64
Trait Implementations§
Source§impl Clone for AttackSimplified
impl Clone for AttackSimplified
Source§fn clone(&self) -> AttackSimplified
fn clone(&self) -> AttackSimplified
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 AttackSimplified
impl Debug for AttackSimplified
Source§impl<'de> Deserialize<'de> for AttackSimplified
impl<'de> Deserialize<'de> for AttackSimplified
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 PartialEq for AttackSimplified
impl PartialEq for AttackSimplified
impl StructuralPartialEq for AttackSimplified
Auto Trait Implementations§
impl Freeze for AttackSimplified
impl RefUnwindSafe for AttackSimplified
impl Send for AttackSimplified
impl Sync for AttackSimplified
impl Unpin for AttackSimplified
impl UnwindSafe for AttackSimplified
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