#[non_exhaustive]pub enum PurchaseNonTradableLimitedError {
PriceMismatch,
SoldOut,
UnknownRobloxErrorMsg(String),
}Expand description
Custom Roblox errors that occur when using Client::purchase_non_tradable_limited.
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.
PriceMismatch
Thrown when the price of the item is not the same as the price you’re trying to buy it for.
SoldOut
Thrown when the item is sold out.
UnknownRobloxErrorMsg(String)
Thrown when an unknown error occurs.
Trait Implementations§
source§impl Clone for PurchaseNonTradableLimitedError
impl Clone for PurchaseNonTradableLimitedError
source§fn clone(&self) -> PurchaseNonTradableLimitedError
fn clone(&self) -> PurchaseNonTradableLimitedError
Returns a copy 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 Default for PurchaseNonTradableLimitedError
impl Default for PurchaseNonTradableLimitedError
source§fn default() -> PurchaseNonTradableLimitedError
fn default() -> PurchaseNonTradableLimitedError
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PurchaseNonTradableLimitedError
impl<'de> Deserialize<'de> for PurchaseNonTradableLimitedError
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
source§impl Error for PurchaseNonTradableLimitedError
impl Error for PurchaseNonTradableLimitedError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for PurchaseNonTradableLimitedError
impl Ord for PurchaseNonTradableLimitedError
source§fn cmp(&self, other: &PurchaseNonTradableLimitedError) -> Ordering
fn cmp(&self, other: &PurchaseNonTradableLimitedError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PurchaseNonTradableLimitedError> for PurchaseNonTradableLimitedError
impl PartialEq<PurchaseNonTradableLimitedError> for PurchaseNonTradableLimitedError
source§fn eq(&self, other: &PurchaseNonTradableLimitedError) -> bool
fn eq(&self, other: &PurchaseNonTradableLimitedError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<PurchaseNonTradableLimitedError> for PurchaseNonTradableLimitedError
impl PartialOrd<PurchaseNonTradableLimitedError> for PurchaseNonTradableLimitedError
source§fn partial_cmp(
&self,
other: &PurchaseNonTradableLimitedError
) -> Option<Ordering>
fn partial_cmp( &self, other: &PurchaseNonTradableLimitedError ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for PurchaseNonTradableLimitedError
impl StructuralEq for PurchaseNonTradableLimitedError
impl StructuralPartialEq for PurchaseNonTradableLimitedError
Auto Trait Implementations§
impl RefUnwindSafe for PurchaseNonTradableLimitedError
impl Send for PurchaseNonTradableLimitedError
impl Sync for PurchaseNonTradableLimitedError
impl Unpin for PurchaseNonTradableLimitedError
impl UnwindSafe for PurchaseNonTradableLimitedError
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.