[][src]Struct gw2api::v1::item_details::Weapon

pub struct Weapon { /* fields omitted */ }

Struct containing information about a weapon.

Implementations

impl Weapon[src]

pub fn weapon_type(&self) -> &WeaponType[src]

Returns the weapon type.

pub fn damage_type(&self) -> &DamageType[src]

Returns the damage type.

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

Returns the weapon's minimal power rating.

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

Returns the weapon's maximum power rating.

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

Returns the the weapon's defense rating.

pub fn infusion_slots(&self) -> &Vec<InfusionSlot>[src]

Returns the list of infusion slots the upgrade component can be applied to.

pub fn infix_upgrade(&self) -> Option<&InfixUpgrade>[src]

Returns the potential bonus given by the object. Optional property.

pub fn suffix_item_id(&self) -> Option<&String>[src]

Returns the item id of an already applied upgrade component. Can be empty.

pub fn secondary_suffix_item_id(&self) -> Option<&String>[src]

Returns the potential secondary upgrade component. Always empty.

Trait Implementations

impl Debug for Weapon[src]

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

impl PartialEq<Weapon> for Weapon[src]

impl StructuralPartialEq for Weapon[src]

Auto Trait Implementations

impl RefUnwindSafe for Weapon

impl Send for Weapon

impl Sync for Weapon

impl Unpin for Weapon

impl UnwindSafe for Weapon

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.