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: f32
Trait 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
Auto Trait Implementations§
impl<'a> Freeze for Attack<'a>
impl<'a> RefUnwindSafe for Attack<'a>
impl<'a> Send for Attack<'a>
impl<'a> Sync for Attack<'a>
impl<'a> Unpin for Attack<'a>
impl<'a> UnwindSafe for Attack<'a>
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