#[repr(i16)]pub enum AccountType {
Individual = 0,
School = 1,
}
Expand description
The type of account
Variants§
Implementations§
Source§impl AccountType
impl AccountType
Sourcepub fn matches_subscription_type(
&self,
subscription_type: &SubscriptionType,
) -> bool
pub fn matches_subscription_type( &self, subscription_type: &SubscriptionType, ) -> bool
Test whether this variant matches the variant in SubscriptionType
Trait Implementations§
Source§impl Clone for AccountType
impl Clone for AccountType
Source§fn clone(&self) -> AccountType
fn clone(&self) -> AccountType
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 AccountType
impl Debug for AccountType
Source§impl<'de> Deserialize<'de> for AccountType
impl<'de> Deserialize<'de> for AccountType
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 Display for AccountType
impl Display for AccountType
Source§impl From<SubscriptionType> for AccountType
impl From<SubscriptionType> for AccountType
Source§fn from(value: SubscriptionType) -> Self
fn from(value: SubscriptionType) -> Self
Converts to this type from the input type.
Source§impl Serialize for AccountType
impl Serialize for AccountType
impl Copy for AccountType
Auto Trait Implementations§
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
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