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