pub struct Listings {
pub id: u64,
pub buys: Listing,
}
Fields§
§id: u64
§buys: Listing
Implementations§
Source§impl Listings
impl Listings
pub fn get<C>(client: &C, id: u64) -> C::Resultwhere
C: ClientExecutor<Self>,
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 Listings
impl<'de> Deserialize<'de> for Listings
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 Listings
impl RefUnwindSafe for Listings
impl Send for Listings
impl Sync for Listings
impl Unpin for Listings
impl UnwindSafe for Listings
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