pub struct UserAccountSummary {
pub account_id: Option<AccountId>,
pub school_id: Option<SchoolId>,
pub school_name: Option<String>,
pub plan_type: Option<PlanType>,
pub plan_tier: PlanTier,
pub overridden: bool,
pub subscription_status: Option<SubscriptionStatus>,
pub is_admin: bool,
pub overdue: bool,
pub verified: bool,
}
Expand description
Summary of the user’s account. This could be a school account that a user is a member of.
In the case that the user is a member of a school account, the subscription tier would be
None
for a free account, or Pro
.
Fields§
§account_id: Option<AccountId>
Account ID
school_id: Option<SchoolId>
ID of the school if this is a School account
school_name: Option<String>
Name of the school if this is a School account
plan_type: Option<PlanType>
The type of plan the user’s account is subscribed to
plan_tier: PlanTier
The plan tier
overridden: bool
Whether the tier has been overridden
subscription_status: Option<SubscriptionStatus>
Status of the accounts subscription, if any
is_admin: bool
Whether this user is an admin. For non School accounts, this user will always be an admin
overdue: bool
Whether the account is overdue
verified: bool
Whether the user is verified for the account
Trait Implementations§
Source§impl Clone for UserAccountSummary
impl Clone for UserAccountSummary
Source§fn clone(&self) -> UserAccountSummary
fn clone(&self) -> UserAccountSummary
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 UserAccountSummary
impl Debug for UserAccountSummary
Source§impl<'de> Deserialize<'de> for UserAccountSummary
impl<'de> Deserialize<'de> for UserAccountSummary
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
Auto Trait Implementations§
impl Freeze for UserAccountSummary
impl RefUnwindSafe for UserAccountSummary
impl Send for UserAccountSummary
impl Sync for UserAccountSummary
impl Unpin for UserAccountSummary
impl UnwindSafe for UserAccountSummary
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