pub struct Attack<'a> {
pub code: &'a str,
pub timestamp_started: DateTime<Utc>,
pub timestamp_ended: DateTime<Utc>,
pub attacker_id: Option<i32>,
pub attacker_faction: Option<i32>,
pub defender_id: i32,
pub defender_faction: Option<i32>,
pub result: AttackResult,
pub stealthed: bool,
pub respect: f32,
}Fields§
§code: &'a str§timestamp_started: DateTime<Utc>§timestamp_ended: DateTime<Utc>§attacker_id: Option<i32>§attacker_faction: Option<i32>§defender_id: i32§defender_faction: Option<i32>§result: AttackResult§stealthed: bool§respect: f32Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Attack<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Attack<'a>
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