pub struct AccountAccess(/* private fields */);
Expand description
A list of content an Account
has access to.
Implementations§
Source§impl AccountAccess
impl AccountAccess
Sourcepub fn none(&self) -> bool
pub fn none(&self) -> bool
Returns true
if the account has no access.
Note that this probably shouldn’t ever happen.
Sourcepub fn play_for_free(&self) -> bool
pub fn play_for_free(&self) -> bool
Returns true
if the account has free to play access.
Sourcepub fn guild_wars_2(&self) -> bool
pub fn guild_wars_2(&self) -> bool
Returns true
if the account has access to the base game of Guild Wars 2.
Sourcepub fn heart_of_thorns(&self) -> bool
pub fn heart_of_thorns(&self) -> bool
Returns true
if the account has access to the Heart of Thorns expansion.
Sourcepub fn path_of_fire(&self) -> bool
pub fn path_of_fire(&self) -> bool
Returns true
if the account has access to the Path of Fire expansion.
Sourcepub fn end_of_dragons(&self) -> bool
pub fn end_of_dragons(&self) -> bool
Returns true
if the account has access to the End of Dragons expansion.
Trait Implementations§
Source§impl Clone for AccountAccess
impl Clone for AccountAccess
Source§fn clone(&self) -> AccountAccess
fn clone(&self) -> AccountAccess
Returns a duplicate 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 AccountAccess
impl Debug for AccountAccess
Source§impl<'de> Deserialize<'de> for AccountAccess
impl<'de> Deserialize<'de> for AccountAccess
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 Hash for AccountAccess
impl Hash for AccountAccess
Source§impl PartialEq for AccountAccess
impl PartialEq for AccountAccess
Source§impl Serialize for AccountAccess
impl Serialize for AccountAccess
impl Copy for AccountAccess
impl Eq for AccountAccess
impl StructuralPartialEq for AccountAccess
Auto Trait Implementations§
impl Freeze for AccountAccess
impl RefUnwindSafe for AccountAccess
impl Send for AccountAccess
impl Sync for AccountAccess
impl Unpin for AccountAccess
impl UnwindSafe for AccountAccess
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.