pub struct UserUpdatePassword {
pub body: UserUpdatePasswordRequest,
}Expand description
§接口说明 此接口用于为已经登录的用户修改当前的登录密码。 ### 权限需求 此接口需要登录后才可使用(请求中包含Authorization头)
Fields§
§body: UserUpdatePasswordRequestTrait Implementations§
Source§impl Clone for UserUpdatePassword
impl Clone for UserUpdatePassword
Source§fn clone(&self) -> UserUpdatePassword
fn clone(&self) -> UserUpdatePassword
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 UserUpdatePassword
impl Debug for UserUpdatePassword
Source§impl<'de> Deserialize<'de> for UserUpdatePassword
impl<'de> Deserialize<'de> for UserUpdatePassword
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 UserUpdatePassword
impl Request for UserUpdatePassword
const METHOD: Method = Method::POST
const PATH: &'static str = "/api/v2/user/password"
type Response = UserUpdateProfileResponseV2
type Body = UserUpdatePasswordRequest
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 UserUpdatePassword
impl RefUnwindSafe for UserUpdatePassword
impl Send for UserUpdatePassword
impl Sync for UserUpdatePassword
impl Unpin for UserUpdatePassword
impl UnsafeUnpin for UserUpdatePassword
impl UnwindSafe for UserUpdatePassword
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