pub struct AccountLuck(pub u64);
Expand description
The current luck value of an account.
Tuple Fields§
§0: u64
Implementations§
Source§impl AccountLuck
impl AccountLuck
Sourcepub fn get<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
pub fn get<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
Returns the unlocked luck value of the currently authenticated account.
§Authentication
This endpoint requires authentication and returns an Error
if no access token is set.
When authenticated it returns unlocked luck value of the account of the current access
token.
§Examples
let client: Client = Client::builder().access_token(token).into();
let luck = AccountLuck::get(&client).await?;
Using the blocking
client:
let client: Client = Client::builder().access_token(token).into();
let luck = AccountLuck::get(&client)?;
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AccountLuck
impl<'de> Deserialize<'de> for AccountLuck
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
Auto Trait Implementations§
impl Freeze for AccountLuck
impl RefUnwindSafe for AccountLuck
impl Send for AccountLuck
impl Sync for AccountLuck
impl Unpin for AccountLuck
impl UnwindSafe for AccountLuck
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