pub struct InventoryDescription {Show 27 fields
pub appid: u32,
pub classid: String,
pub instanceid: String,
pub currency: i32,
pub background_color: Option<String>,
pub icon_url: String,
pub icon_url_large: Option<String>,
pub descriptions: Vec<InventoryDescriptionEntry>,
pub owner_descriptions: Vec<InventoryDescriptionEntry>,
pub tradable: i32,
pub actions: Vec<InventoryAction>,
pub name: String,
pub name_color: Option<String>,
pub item_type: String,
pub market_name: String,
pub market_hash_name: String,
pub market_actions: Vec<InventoryAction>,
pub commodity: i32,
pub market_tradable_restriction: Option<i32>,
pub market_marketable_restriction: Option<i32>,
pub marketable: i32,
pub tags: Vec<InventoryApiTag>,
pub fraudwarnings: Vec<String>,
pub sealed: Option<i32>,
pub sealed_type: Option<i32>,
pub market_bucket_group_name: Option<String>,
pub market_bucket_group_id: Option<String>,
}Expand description
A full description object from the Steam inventory API response.
Fields§
§appid: u32§classid: String§instanceid: String§currency: i32§background_color: Option<String>§icon_url: String§icon_url_large: Option<String>§descriptions: Vec<InventoryDescriptionEntry>§owner_descriptions: Vec<InventoryDescriptionEntry>§tradable: i32§actions: Vec<InventoryAction>§name: String§name_color: Option<String>§item_type: String§market_name: String§market_hash_name: String§market_actions: Vec<InventoryAction>§commodity: i32§market_tradable_restriction: Option<i32>§market_marketable_restriction: Option<i32>§marketable: i32§fraudwarnings: Vec<String>§sealed: Option<i32>§sealed_type: Option<i32>§market_bucket_group_name: Option<String>§market_bucket_group_id: Option<String>Implementations§
Source§impl InventoryDescription
impl InventoryDescription
Sourcepub fn is_container(&self) -> bool
pub fn is_container(&self) -> bool
Returns true when this description represents a container
(weapon case / capsule / sticker pack / etc.).
See crate::utils::is_inventory_container_item for the detection
logic.
Trait Implementations§
Source§impl Clone for InventoryDescription
impl Clone for InventoryDescription
Source§fn clone(&self) -> InventoryDescription
fn clone(&self) -> InventoryDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InventoryDescription
impl Debug for InventoryDescription
Source§impl<'de> Deserialize<'de> for InventoryDescription
impl<'de> Deserialize<'de> for InventoryDescription
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 InventoryDescription
impl RefUnwindSafe for InventoryDescription
impl Send for InventoryDescription
impl Sync for InventoryDescription
impl Unpin for InventoryDescription
impl UnsafeUnpin for InventoryDescription
impl UnwindSafe for InventoryDescription
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more