pub struct War {
pub aggressor: WarParty,
pub allies: Option<Vec<WarAlly>>,
pub declared: String,
pub defender: WarParty,
pub finished: Option<String>,
pub id: i64,
pub mutual: bool,
pub open_for_allies: bool,
pub retracted: Option<String>,
pub started: Option<String>,
}Expand description
Information about a war.
Fields§
§aggressor: WarParty§allies: Option<Vec<WarAlly>>§declared: String§defender: WarParty§finished: Option<String>§id: i64§mutual: bool§open_for_allies: bool§retracted: Option<String>§started: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for War
impl<'de> Deserialize<'de> for War
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 War
Auto Trait Implementations§
impl Freeze for War
impl RefUnwindSafe for War
impl Send for War
impl Sync for War
impl Unpin for War
impl UnsafeUnpin for War
impl UnwindSafe for War
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