#[repr(i32)]pub enum RewardStatus {
Unknown = -1,
Upcoming = 0,
Cancelled = 1,
ExitedActivity = 2,
Unclaimed = 8,
Issuing = 10,
Issued = 12,
Failed = 13,
Exchanged = 16,
Expired = 17,
Refunded = 18,
}Expand description
Status of a reward record
Variants§
Unknown = -1
Unknown (an undocumented code)
Upcoming = 0
Upcoming
Cancelled = 1
Cancelled
ExitedActivity = 2
The user exited the activity
Unclaimed = 8
Not claimed yet
Issuing = 10
Being issued
Issued = 12
Issued
Failed = 13
Issuing failed
Exchanged = 16
Exchanged
Expired = 17
Expired
Refunded = 18
Refunded
Trait Implementations§
Source§impl Clone for RewardStatus
impl Clone for RewardStatus
impl Copy for RewardStatus
Source§impl Debug for RewardStatus
impl Debug for RewardStatus
Source§impl Default for RewardStatus
impl Default for RewardStatus
Source§impl<'de> Deserialize<'de> for RewardStatus
impl<'de> Deserialize<'de> for RewardStatus
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RewardStatus
Source§impl From<RewardStatus> for i32
impl From<RewardStatus> for i32
Source§fn from(enum_value: RewardStatus) -> Self
fn from(enum_value: RewardStatus) -> Self
Converts to this type from the input type.
Source§impl From<i32> for RewardStatus
impl From<i32> for RewardStatus
Source§impl FromPrimitive for RewardStatus
impl FromPrimitive for RewardStatus
Source§impl Hash for RewardStatus
impl Hash for RewardStatus
Source§impl PartialEq for RewardStatus
impl PartialEq for RewardStatus
Source§impl Serialize for RewardStatus
impl Serialize for RewardStatus
impl StructuralPartialEq for RewardStatus
Auto Trait Implementations§
impl Freeze for RewardStatus
impl RefUnwindSafe for RewardStatus
impl Send for RewardStatus
impl Sync for RewardStatus
impl Unpin for RewardStatus
impl UnsafeUnpin for RewardStatus
impl UnwindSafe for RewardStatus
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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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