pub struct AccountProfileUpdateRequest {
pub display_name: Option<String>,
pub avatar_url: Option<String>,
pub bio: Option<String>,
pub extra_fields: HashMap<String, String>,
pub user_id: u64,
}Expand description
更新个人资料请求
RPC路由: account/profile/update
Fields§
§display_name: Option<String>显示名称(可选)
avatar_url: Option<String>头像 URL(可选)
bio: Option<String>个人简介(可选)
extra_fields: HashMap<String, String>兼容扩展字段(可选)
user_id: u64用户ID(服务器端填充,客户端不需要传)
Trait Implementations§
Source§impl Clone for AccountProfileUpdateRequest
impl Clone for AccountProfileUpdateRequest
Source§fn clone(&self) -> AccountProfileUpdateRequest
fn clone(&self) -> AccountProfileUpdateRequest
Returns a duplicate 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 AccountProfileUpdateRequest
impl Debug for AccountProfileUpdateRequest
Source§impl<'de> Deserialize<'de> for AccountProfileUpdateRequest
impl<'de> Deserialize<'de> for AccountProfileUpdateRequest
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 AccountProfileUpdateRequest
impl RefUnwindSafe for AccountProfileUpdateRequest
impl Send for AccountProfileUpdateRequest
impl Sync for AccountProfileUpdateRequest
impl Unpin for AccountProfileUpdateRequest
impl UnsafeUnpin for AccountProfileUpdateRequest
impl UnwindSafe for AccountProfileUpdateRequest
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