pub struct CreateProfileRequest {Show 16 fields
pub username: String,
pub over_18: bool,
pub given_name: String,
pub family_name: String,
pub profile_image_url: Option<String>,
pub language_app: String,
pub language_emails: String,
pub languages_spoken: Vec<String>,
pub timezone: Tz,
pub opt_into_edu_resources: bool,
pub organization: Option<String>,
pub persona: Vec<String>,
pub subjects: Vec<SubjectId>,
pub age_ranges: Vec<AgeRangeId>,
pub affiliations: Vec<AffiliationId>,
pub location: Option<Value>,
}
Expand description
Request for user::profile::Create
Fields§
§username: String
The user’s username.
This must be unique.
over_18: bool
Is the user >= 18 yeas old?
given_name: String
The user’s given name / “first name”.
family_name: String
The user’s family name / “last name”.
profile_image_url: Option<String>
URL to the user’s profile image. The API server uploads and processes the image so that the profile image is stored in Cloud Storage in the user image library.
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.
timezone: Tz
the timezone that the user uses.
opt_into_edu_resources: bool
Does the user want educational resources sent to them?
organization: Option<String>
The organization that the user belongs to.
persona: Vec<String>
The persona of the user
subjects: Vec<SubjectId>
The user’s taught subjects.
age_ranges: Vec<AgeRangeId>
The user’s age-ranges.
affiliations: Vec<AffiliationId>
The user’s affiliations.
location: Option<Value>
The user’s location
Trait Implementations§
Source§impl Debug for CreateProfileRequest
impl Debug for CreateProfileRequest
Source§impl<'de> Deserialize<'de> for CreateProfileRequest
impl<'de> Deserialize<'de> for CreateProfileRequest
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 CreateProfileRequest
impl RefUnwindSafe for CreateProfileRequest
impl Send for CreateProfileRequest
impl Sync for CreateProfileRequest
impl Unpin for CreateProfileRequest
impl UnwindSafe for CreateProfileRequest
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