Enum lb_rs::AdminSetUserTierInfo
source · pub enum AdminSetUserTierInfo {
Stripe {
customer_id: String,
customer_name: Uuid,
payment_method_id: String,
last_4: String,
subscription_id: String,
expiration_time: u64,
account_state: StripeAccountState,
},
GooglePlay {
purchase_token: String,
expiration_time: u64,
account_state: GooglePlayAccountState,
},
AppStore {
account_token: String,
original_transaction_id: String,
expiration_time: u64,
account_state: AppStoreAccountState,
},
Free,
}Variants§
Stripe
Fields
§
account_state: StripeAccountStateGooglePlay
AppStore
Fields
§
account_state: AppStoreAccountStateFree
Trait Implementations§
source§impl Clone for AdminSetUserTierInfo
impl Clone for AdminSetUserTierInfo
source§fn clone(&self) -> AdminSetUserTierInfo
fn clone(&self) -> AdminSetUserTierInfo
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 Debug for AdminSetUserTierInfo
impl Debug for AdminSetUserTierInfo
source§impl<'de> Deserialize<'de> for AdminSetUserTierInfo
impl<'de> Deserialize<'de> for AdminSetUserTierInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AdminSetUserTierInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AdminSetUserTierInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for AdminSetUserTierInfo
impl PartialEq for AdminSetUserTierInfo
source§fn eq(&self, other: &AdminSetUserTierInfo) -> bool
fn eq(&self, other: &AdminSetUserTierInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AdminSetUserTierInfo
impl Serialize for AdminSetUserTierInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AdminSetUserTierInfo
impl StructuralPartialEq for AdminSetUserTierInfo
Auto Trait Implementations§
impl Freeze for AdminSetUserTierInfo
impl RefUnwindSafe for AdminSetUserTierInfo
impl Send for AdminSetUserTierInfo
impl Sync for AdminSetUserTierInfo
impl Unpin for AdminSetUserTierInfo
impl UnwindSafe for AdminSetUserTierInfo
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 Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.