[][src]Struct gw2api::v1::map_floor::Floor

pub struct Floor { /* fields omitted */ }

Struct containing details about a specified map floor. All coordinates are map coordinates.

Implementations

impl Floor[src]

pub fn get_map_floor(
    client: &Client,
    continent_id: u32,
    floor: i32
) -> Result<Floor, ApiError>
[src]

Retrieve a map floor by its continent id and floor number.

pub fn texture_dims(&self) -> &Vec<f32>[src]

Returns a tuple describing the dimension of the texture for the map floor.

pub fn clamped_view(&self) -> &Vec<Vec<f32>>[src]

If present, it represents a rectangle of downloadable textures. Every tile coordinate outside this rectangle is not available on the tile server. Returns the name of the map.

pub fn regions(&self) -> &BTreeMap<u32, Region>[src]

Returns a map of the regions of a map, where the region id is key and the region object is the value.

Trait Implementations

impl Debug for Floor[src]

impl<'de> Deserialize<'de> for Floor[src]

impl PartialEq<Floor> for Floor[src]

impl StructuralPartialEq for Floor[src]

Auto Trait Implementations

impl RefUnwindSafe for Floor

impl Send for Floor

impl Sync for Floor

impl Unpin for Floor

impl UnwindSafe for Floor

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.