pub struct UserResponse {Show 23 fields
pub id: UserId,
pub username: String,
pub given_name: String,
pub family_name: String,
pub email: String,
pub country: Option<String>,
pub state: Option<String>,
pub city: Option<String>,
pub organization: Option<String>,
pub created_at: NaiveDate,
pub language: String,
pub badge: Option<UserBadge>,
pub plan_type: Option<PlanType>,
pub subscription_status: Option<SubscriptionStatus>,
pub is_trial: Option<bool>,
pub current_period_end: Option<DateTime<Utc>>,
pub amount_due_in_cents: Option<AmountInCents>,
pub is_admin: Option<bool>,
pub school_id: Option<SchoolId>,
pub school_name: Option<String>,
pub account_id: Option<AccountId>,
pub tier_override: Option<PlanTier>,
pub login_type: UserLoginType,
}
Expand description
User Response (used for Admin).
Fields§
§id: UserId
The user’s id.
username: String
The user’s username.
given_name: String
The user’s given name (first name)
family_name: String
The user’s family name (last name)
email: String
The user’s email address.
country: Option<String>
The user’s country.
state: Option<String>
The user’s state.
city: Option<String>
The user’s city.
organization: Option<String>
The user’s associated organization/school.
created_at: NaiveDate
The date the user signed up on .
language: String
The user’s preferred email language for newsletters.
badge: Option<UserBadge>
The user’s city.
plan_type: Option<PlanType>
The users subscription plan type
subscription_status: Option<SubscriptionStatus>
The users subscription status
is_trial: Option<bool>
Whether the user’s subscription is in a trial period
current_period_end: Option<DateTime<Utc>>
The users subscription expiry/renewal date
amount_due_in_cents: Option<AmountInCents>
The amount due on the users subscription
is_admin: Option<bool>
Whether the user is an admin of the account
school_id: Option<SchoolId>
The school name associated with the users account
school_name: Option<String>
The school name associated with the users account
account_id: Option<AccountId>
The account id for the user
tier_override: Option<PlanTier>
Plan tier override
login_type: UserLoginType
Login type
Trait Implementations§
Source§impl Clone for UserResponse
impl Clone for UserResponse
Source§fn clone(&self) -> UserResponse
fn clone(&self) -> UserResponse
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 UserResponse
impl Debug for UserResponse
Source§impl<'de> Deserialize<'de> for UserResponse
impl<'de> Deserialize<'de> for UserResponse
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 UserResponse
impl RefUnwindSafe for UserResponse
impl Send for UserResponse
impl Sync for UserResponse
impl Unpin for UserResponse
impl UnwindSafe for UserResponse
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