pub struct Attack {Show 16 fields
    pub id: AttackId,
    pub code: AttackCode,
    pub started: i32,
    pub ended: i32,
    pub attacker: Option<AttackPlayer>,
    pub defender: AttackPlayer,
    pub result: FactionAttackResult,
    pub respect_gain: f64,
    pub respect_loss: f64,
    pub chain: i32,
    pub is_interrupted: bool,
    pub is_stealthed: bool,
    pub is_raid: bool,
    pub is_ranked_war: bool,
    pub finishing_hit_effects: Vec<AttackingFinishingHitEffects>,
    pub modifiers: Modifiers,
}Fields§
§id: AttackId§code: AttackCode§started: i32Attack start timestamp.
ended: i32Attack end timestamp.
attacker: Option<AttackPlayer>§defender: AttackPlayer§result: FactionAttackResult§respect_gain: f64§respect_loss: f64§chain: i32§is_interrupted: boolThis is an experimental flag which should help determine ‘assist’ attacks which have not contributed to the chain. For example, attacks such as where the opponent lost to someoene else before the attacker could finish the attack. This flag might not work entirely correctly, so use with caution.
is_stealthed: bool§is_raid: bool§is_ranked_war: bool§finishing_hit_effects: Vec<AttackingFinishingHitEffects>§modifiers: ModifiersTrait Implementations§
Source§impl<'de> Deserialize<'de> for Attack
 
impl<'de> Deserialize<'de> for Attack
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 Attack
Auto Trait Implementations§
impl Freeze for Attack
impl RefUnwindSafe for Attack
impl Send for Attack
impl Sync for Attack
impl Unpin for Attack
impl UnwindSafe for Attack
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