pub struct MapDataResponse {
pub region_id: u16,
pub scorched_victory_towns: u16,
pub map_items: Vec<MapItem>,
pub map_text_items: Vec<MapTextItem>,
pub last_updated: u64,
pub version: u16,
}
Expand description
Response for the /worldconquest/maps/{map}/dynamic|static endpoints.
Contains information about a requested map hex. This includes static objects, as well as objects that can change dynamically. This does not include player built fortifications.
Fields§
§region_id: u16
§scorched_victory_towns: u16
§map_items: Vec<MapItem>
§map_text_items: Vec<MapTextItem>
§last_updated: u64
§version: u16
Trait Implementations§
Source§impl Clone for MapDataResponse
impl Clone for MapDataResponse
Source§fn clone(&self) -> MapDataResponse
fn clone(&self) -> MapDataResponse
Returns a copy 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 MapDataResponse
impl Debug for MapDataResponse
Source§impl<'de> Deserialize<'de> for MapDataResponse
impl<'de> Deserialize<'de> for MapDataResponse
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 MapDataResponse
impl PartialEq for MapDataResponse
impl StructuralPartialEq for MapDataResponse
Auto Trait Implementations§
impl Freeze for MapDataResponse
impl RefUnwindSafe for MapDataResponse
impl Send for MapDataResponse
impl Sync for MapDataResponse
impl Unpin for MapDataResponse
impl UnwindSafe for MapDataResponse
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