pub struct UserUpdateProfile {
pub body: UserUpdateProfileRequest,
}Expand description
§接口说明 此接口用于为已经登录的用户修改当前的基本资料(如昵称、头像)。 当提供screenName时才更新昵称,提供profileImageBase64时才更新头像图片,否则不会产生变化。 ### 更新头像图片 头像图片需要转换成base64编码后放入profileImageBase64字段中。此字段长度不能超过1MB。 上传的图片将保留长宽比,转换为边长最长600px的长方形,并存储为jpg格式。 ### 权限需求 此接口需要登录后才可使用(请求中包含Authorization头)
Fields§
§body: UserUpdateProfileRequestTrait Implementations§
Source§impl Clone for UserUpdateProfile
impl Clone for UserUpdateProfile
Source§fn clone(&self) -> UserUpdateProfile
fn clone(&self) -> UserUpdateProfile
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 UserUpdateProfile
impl Debug for UserUpdateProfile
Source§impl<'de> Deserialize<'de> for UserUpdateProfile
impl<'de> Deserialize<'de> for UserUpdateProfile
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
Source§impl Request for UserUpdateProfile
impl Request for UserUpdateProfile
const METHOD: Method = Method::POST
const PATH: &'static str = "/api/v2/user/profile"
type Response = UserUpdateProfileResponseV2
type Body = UserUpdateProfileRequest
type Params = ()
fn body(&self) -> Option<&Self::Body>
fn params(&self) -> Option<&Self::Params>
fn path(&self) -> Cow<'static, str>
Auto Trait Implementations§
impl Freeze for UserUpdateProfile
impl RefUnwindSafe for UserUpdateProfile
impl Send for UserUpdateProfile
impl Sync for UserUpdateProfile
impl Unpin for UserUpdateProfile
impl UnsafeUnpin for UserUpdateProfile
impl UnwindSafe for UserUpdateProfile
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