[][src]Struct gw2api::v2::pvp::amulets::Amulet

pub struct Amulet { /* fields omitted */ }

Returns information about the PvP amulets.

Implementations

impl Amulet[src]

pub fn get_id(client: &Client, id: u32) -> Result<Amulet, ApiError>[src]

Retrieve an amulet by its id.

pub fn get_all_ids(client: &Client) -> Result<Vec<u32>, ApiError>[src]

Retrieve all ids for the available PvP amulets, returning a Vec of ids.

pub fn get_amulets_by_ids(
    client: &Client,
    ids: Vec<u32>
) -> Result<Vec<Amulet>, ApiError>
[src]

Retrieve multiple amulets by their ids, if any of the ids do not exist it will not be in the returned Vec, if all the ids are invalid the Vec will be empty.

pub fn get_all_amulets(client: &Client) -> Result<Vec<Amulet>, ApiError>[src]

Retrieve all available amulets, returning a Vec of Amulet objects.

pub fn id(&self) -> u32[src]

Returns the ID of the Amulet object.

pub fn name(&self) -> &str[src]

Returns a string slice of the name of the Amulet.

pub fn icon_url(&self) -> &str[src]

Returns a url to the icon for the Amulet.

pub fn attributes(&self) -> &HashMap<Attribute, i32>[src]

Returns a Vec containing the attributes associated with the Amulet.

Trait Implementations

impl Debug for Amulet[src]

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

impl PartialEq<Amulet> for Amulet[src]

impl StructuralPartialEq for Amulet[src]

Auto Trait Implementations

impl RefUnwindSafe for Amulet

impl Send for Amulet

impl Sync for Amulet

impl Unpin for Amulet

impl UnwindSafe for Amulet

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.