pub struct UpdateProfileBody {
pub bio: Option<String>,
pub display_name: Option<String>,
}Expand description
Body for PUT /api/v1/u/me.
Carries the complete replacement state of the editable profile
fields. PUT semantics: the body IS the new value — fields not
present (or set to null) are cleared. To preserve an existing
value, send it back. Read the current values from GET /u/me.
Username and email are NOT editable here — username is immutable and email is bound to the auth provider.
JSON schema
{
"description": "Body for `PUT /api/v1/u/me`.\n\nCarries the complete replacement state of the editable profile\nfields. PUT semantics: the body IS the new value — fields not\npresent (or set to `null`) are cleared. To preserve an existing\nvalue, send it back. Read the current values from `GET /u/me`.\n\nUsername and email are NOT editable here — username is immutable\nand email is bound to the auth provider.",
"type": "object",
"properties": {
"bio": {
"description": "Free-form short biography rendered on the user's public\nprofile. Missing or `null` clears the field. No length cap is\nenforced at the API layer; expect Markdown but no rendering\nguarantees.",
"type": [
"string",
"null"
]
},
"display_name": {
"description": "Human-readable display name shown next to the username on\nprofile pages and trace headers. Missing or `null` clears the\nfield (the UI then falls back to the bare username).",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}Fields§
§bio: Option<String>Free-form short biography rendered on the user’s public
profile. Missing or null clears the field. No length cap is
enforced at the API layer; expect Markdown but no rendering
guarantees.
display_name: Option<String>Human-readable display name shown next to the username on
profile pages and trace headers. Missing or null clears the
field (the UI then falls back to the bare username).
Trait Implementations§
Source§impl Clone for UpdateProfileBody
impl Clone for UpdateProfileBody
Source§fn clone(&self) -> UpdateProfileBody
fn clone(&self) -> UpdateProfileBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateProfileBody
impl Debug for UpdateProfileBody
Source§impl Default for UpdateProfileBody
impl Default for UpdateProfileBody
Source§impl<'de> Deserialize<'de> for UpdateProfileBody
impl<'de> Deserialize<'de> for UpdateProfileBody
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 UpdateProfileBody
impl RefUnwindSafe for UpdateProfileBody
impl Send for UpdateProfileBody
impl Sync for UpdateProfileBody
impl Unpin for UpdateProfileBody
impl UnsafeUnpin for UpdateProfileBody
impl UnwindSafe for UpdateProfileBody
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