pub struct RegisterResetPassword {
pub body: ResetPasswordRequestV2,
}Expand description
§接口说明 通过此接口可以重置一个用户的密码至随机密码,重置成功后新的随机密码将会发送到对应的邮箱中。 调用此接口需要有应用的AppId与AppSecret,您可以联系弹弹play开发方申请。 ### 请求说明 请求参数中userName和email必须和注册时的信息完全一致,方能成功重置。 重置密码的请求每2分钟只能发送一次,否则会返回错误信息。 ### Hash计算方法 Hash属性的计算方法为,将登录请求中 appId email unixTimestamp userName 属性的值加上您应用的 AppSecret 密钥的值按顺序拼接起来, 计算出32位MD5(不区分大小写)。举例来说,appId为dandanplay,AppSecret为FFFFF,用户名为test1,邮箱为test3@example.com, 那么计算方法将会是 hash=MD5(dandanplaytest3@example.com666666666test1FFFFF)。 ### 错误代码 当调用接口发生错误时,例如参数不完整、验证错误、登录失败,success属性值将为false,errorCode代码将不为0, 同时errorMessage属性将包含错误的描述信息 。
Fields§
§body: ResetPasswordRequestV2Trait Implementations§
Source§impl Clone for RegisterResetPassword
impl Clone for RegisterResetPassword
Source§fn clone(&self) -> RegisterResetPassword
fn clone(&self) -> RegisterResetPassword
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 RegisterResetPassword
impl Debug for RegisterResetPassword
Source§impl<'de> Deserialize<'de> for RegisterResetPassword
impl<'de> Deserialize<'de> for RegisterResetPassword
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 RegisterResetPassword
impl Request for RegisterResetPassword
const METHOD: Method = Method::POST
const PATH: &'static str = "/api/v2/register/resetpassword"
type Response = ResetPasswordResponseV2
type Body = ResetPasswordRequestV2
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 RegisterResetPassword
impl RefUnwindSafe for RegisterResetPassword
impl Send for RegisterResetPassword
impl Sync for RegisterResetPassword
impl Unpin for RegisterResetPassword
impl UnsafeUnpin for RegisterResetPassword
impl UnwindSafe for RegisterResetPassword
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