pub struct WarDataResponse {
pub war_id: String,
pub war_number: u32,
pub winner: TeamId,
pub conquest_start_time: u64,
pub conquest_end_time: Option<u64>,
pub resistance_start_time: Option<u64>,
pub required_victory_towns: u8,
}Expand description
Response for the worldconquest/war endpoint.
This response contains information about the status of the war for a given shard.
Fields§
§war_id: String§war_number: u32§winner: TeamId§conquest_start_time: u64§conquest_end_time: Option<u64>§resistance_start_time: Option<u64>§required_victory_towns: u8Trait Implementations§
Source§impl Clone for WarDataResponse
impl Clone for WarDataResponse
Source§fn clone(&self) -> WarDataResponse
fn clone(&self) -> WarDataResponse
Returns a duplicate 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 WarDataResponse
impl Debug for WarDataResponse
Source§impl<'de> Deserialize<'de> for WarDataResponse
impl<'de> Deserialize<'de> for WarDataResponse
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 WarDataResponse
impl PartialEq for WarDataResponse
impl Eq for WarDataResponse
impl StructuralPartialEq for WarDataResponse
Auto Trait Implementations§
impl Freeze for WarDataResponse
impl RefUnwindSafe for WarDataResponse
impl Send for WarDataResponse
impl Sync for WarDataResponse
impl Unpin for WarDataResponse
impl UnwindSafe for WarDataResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.