#[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 duplicate 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)>
Returns 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 for PurchaseNonTradableLimitedError
impl PartialEq for PurchaseNonTradableLimitedError
Source§fn eq(&self, other: &PurchaseNonTradableLimitedError) -> bool
fn eq(&self, other: &PurchaseNonTradableLimitedError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PurchaseNonTradableLimitedError
impl PartialOrd for PurchaseNonTradableLimitedError
impl Eq for PurchaseNonTradableLimitedError
impl StructuralPartialEq for PurchaseNonTradableLimitedError
Auto Trait Implementations§
impl Freeze for PurchaseNonTradableLimitedError
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<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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.