[−][src]Struct gw2api::v2::pvp::amulets::Amulet
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]
client: &Client,
ids: Vec<u32>
) -> Result<Vec<Amulet>, ApiError>
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,