pub struct PatchProfileRequest {Show 21 fields
pub username: Option<String>,
pub given_name: Option<String>,
pub family_name: Option<String>,
pub profile_image: Option<Option<ImageId>>,
pub bio: Option<String>,
pub language_app: Option<String>,
pub language_emails: Option<String>,
pub languages_spoken: Option<Vec<String>>,
pub timezone: Option<Tz>,
pub opt_into_edu_resources: Option<bool>,
pub organization_public: Option<bool>,
pub persona_public: Option<bool>,
pub languages_spoken_public: Option<bool>,
pub location_public: Option<bool>,
pub bio_public: Option<bool>,
pub organization: Option<Option<String>>,
pub persona: Option<Vec<String>>,
pub subjects: Option<Vec<SubjectId>>,
pub age_ranges: Option<Vec<AgeRangeId>>,
pub affiliations: Option<Vec<AffiliationId>>,
pub location: Option<Option<Value>>,
}
Expand description
Request for PatchProfile
Fields§
§username: Option<String>
The user’s username.
This must be unique.
given_name: Option<String>
The user’s given name / “first name”.
family_name: Option<String>
The user’s family name / “last name”.
profile_image: Option<Option<ImageId>>
ID to the user’s profile image in the user image library.
bio: Option<String>
The user’s bio
language_app: Option<String>
the language the user prefers the application to be in.
language_emails: Option<String>
the language the user prefers emails to be in.
languages_spoken: Option<Vec<String>>
the languages the user prefers.
timezone: Option<Tz>
the timezone that the user uses.
opt_into_edu_resources: Option<bool>
Does the user want educational resources sent to them?
organization_public: Option<bool>
Publicize Users organization
persona_public: Option<bool>
Publicize user persona
languages_spoken_public: Option<bool>
Publicize user lanuage
location_public: Option<bool>
Publicize user location
bio_public: Option<bool>
Publicize user bio
organization: Option<Option<String>>
The organization that the user belongs to.
Field is updated if Some(_)
with the inner contents.
persona: Option<Vec<String>>
The persona of the user.
Field is updated if Some(_)
with the inner contents.
subjects: Option<Vec<SubjectId>>
The user’s taught subjects.
If Some
, replace the existing SubjectId
s with this.
age_ranges: Option<Vec<AgeRangeId>>
The user’s age-ranges.
If Some
, replace the existing AgeRangeId
s with this.
affiliations: Option<Vec<AffiliationId>>
The user’s affiliations.
If Some
, replace the existing AffiliationId
s with this.
location: Option<Option<Value>>
The user’s location.
- If the outer
Option
isNone
, then no update is done, - If
Some(None)
, sets the location toNone
, - If
Some(Some(_))
, updates the user location toSome(_)
.