pub struct UserProfileExport {Show 24 fields
pub id: UserId,
pub username: String,
pub email: String,
pub given_name: String,
pub family_name: String,
pub profile_image: Option<ImageId>,
pub last_login: Option<DateTime<Utc>>,
pub last_action: Option<DateTime<Utc>>,
pub language_app: String,
pub language_emails: String,
pub languages_spoken: Vec<String>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub organization: Option<String>,
pub persona: Vec<String>,
pub subjects: Vec<String>,
pub age_ranges: Vec<String>,
pub affiliations: Vec<String>,
pub city: Option<String>,
pub state: Option<String>,
pub country: Option<String>,
pub opt_into_edu_resources: bool,
pub liked_jig_count: i64,
pub published_jigs_count: i64,
}
Expand description
A user’s profile export representation.
Fields§
§id: UserId
The user’s id.
username: String
The user’s username.
email: String
The user’s email address.
given_name: String
The user’s given name (first name)
family_name: String
The user’s family name (last name)
profile_image: Option<ImageId>
ID to the user’s profile image in the user image library.
last_login: Option<DateTime<Utc>>
Last time user logged in.
last_action: Option<DateTime<Utc>>
Last time user did an action.
language_app: String
The user’s preferred application language.
language_emails: String
The user’s preferred email language.
languages_spoken: Vec<String>
The user’s preferred language.
created_at: DateTime<Utc>
When the user was created.
updated_at: Option<DateTime<Utc>>
When the user was last updated.
organization: Option<String>
The organization that the user belongs to.
persona: Vec<String>
The persona of the user
subjects: Vec<String>
The user’s taught subjects.
age_ranges: Vec<String>
The user’s age-ranges.
affiliations: Vec<String>
The user’s affiliations.
city: Option<String>
The user’s city
state: Option<String>
The user’s state/province
country: Option<String>
The user’s country
opt_into_edu_resources: bool
Whether this user has opted in to receive educational resources
liked_jig_count: i64
Number of liked jigs
published_jigs_count: i64
Number of published jigs
Trait Implementations§
Source§impl Clone for UserProfileExport
impl Clone for UserProfileExport
Source§fn clone(&self) -> UserProfileExport
fn clone(&self) -> UserProfileExport
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 UserProfileExport
impl Debug for UserProfileExport
Source§impl<'de> Deserialize<'de> for UserProfileExport
impl<'de> Deserialize<'de> for UserProfileExport
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 UserProfileExport
impl RefUnwindSafe for UserProfileExport
impl Send for UserProfileExport
impl Sync for UserProfileExport
impl Unpin for UserProfileExport
impl UnwindSafe for UserProfileExport
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