pub struct Prices {
pub id: u64,
pub whilelisted: bool,
pub buys: Price,
pub sells: Price,
}Fields§
§id: u64§whilelisted: boolWhether free to play accounts are allowed to buy/sell this item.
buys: Price§sells: PriceImplementations§
Source§impl Prices
impl Prices
Sourcepub fn ids<C>(client: &C) -> C::Result
pub fn ids<C>(client: &C) -> C::Result
Returns a list of all items avaliable on the trading post.
§Examples
let client = Client::new();
let ids = Listings::ids(&client).await?;
println!("There are {} items avaliable through the trading post.", ids.len());Using the blocking client:
let client = Client::new();
let ids = Listings::ids(&client)?;
println!("There are {} items avaliable through the trading post.", ids.len());Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prices
impl<'de> Deserialize<'de> for Prices
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 Prices
impl RefUnwindSafe for Prices
impl Send for Prices
impl Sync for Prices
impl Unpin for Prices
impl UnwindSafe for Prices
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