#[non_exhaustive]pub enum ListingStatus {
InStock,
OutOfStock,
SpecialOrder,
Unknown,
}Expand description
A listing’s stock. A status the API adds later reads as ListingStatus::Unknown, so one
new word doesn’t refuse the whole list.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InStock
In stock, whether or not a count is shown.
OutOfStock
Out of stock.
SpecialOrder
Made or ordered for the buyer, with a lead time.
Unknown
The vendor’s page doesn’t say, or the API gave a status this module doesn’t know.
Trait Implementations§
Source§impl Clone for ListingStatus
impl Clone for ListingStatus
Source§fn clone(&self) -> ListingStatus
fn clone(&self) -> ListingStatus
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 moreimpl Copy for ListingStatus
Source§impl Debug for ListingStatus
impl Debug for ListingStatus
Source§impl<'de> Deserialize<'de> for ListingStatus
impl<'de> Deserialize<'de> for ListingStatus
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
impl Eq for ListingStatus
Source§impl PartialEq for ListingStatus
impl PartialEq for ListingStatus
Source§fn eq(&self, other: &ListingStatus) -> bool
fn eq(&self, other: &ListingStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ListingStatus
impl Serialize for ListingStatus
impl StructuralPartialEq for ListingStatus
Auto Trait Implementations§
impl Freeze for ListingStatus
impl RefUnwindSafe for ListingStatus
impl Send for ListingStatus
impl Sync for ListingStatus
impl Unpin for ListingStatus
impl UnsafeUnpin for ListingStatus
impl UnwindSafe for ListingStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.