pub struct AccountInventory(pub Vec<Option<InventoryItem>>);
Expand description
A list of items stored in the shared inventory slots of an account.
A None
value indicates an empty slot.
Tuple Fields§
§0: Vec<Option<InventoryItem>>
Implementations§
Source§impl AccountInventory
impl AccountInventory
Sourcepub fn get<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
pub fn get<C>(client: &C) -> C::Resultwhere
C: ClientExecutor<Self>,
Returns a list of items stored in the shared inventory slots of the currently authenticated account.
§Authentication
This endpoint requires authentication and returns an Error
if no access token is set.
When authenticated it returns a list of item stored in the shared inventory slots of the
account of the current access token.
§Examples
let client: Client = Client::builder().access_token(token).into();
let inventory = AccountInventory::get(&client).await?;
Using the blocking
client:
let client: Client = Client::builder().access_token(token).into();
let inventory = AccountInventory::get(&client)?;
Trait Implementations§
Source§impl Clone for AccountInventory
impl Clone for AccountInventory
Source§fn clone(&self) -> AccountInventory
fn clone(&self) -> AccountInventory
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 AccountInventory
impl Debug for AccountInventory
Source§impl<'de> Deserialize<'de> for AccountInventory
impl<'de> Deserialize<'de> for AccountInventory
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 AccountInventory
impl RefUnwindSafe for AccountInventory
impl Send for AccountInventory
impl Sync for AccountInventory
impl Unpin for AccountInventory
impl UnwindSafe for AccountInventory
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