Struct restapi::requests::user::create_otp::ApiResUserCreateOtp
source · [−]pub struct ApiResUserCreateOtp {
pub user_id: i32,
pub token: String,
pub exp_date: String,
pub msg: String,
}
Expand description
ApiResUserCreateOtp
Response type for create_otp
Notify the client that, the user’s one-time-use password reset token
was consumed, and the user will need to call:
login_user
to log in with the new password.
Usage
This type is the serialized output for the function:
create_otp
(crate::requests::user::create_otp::create_otp]
and contained within the
hyper Body
of the
hyper Response
sent back to the client.
Arguments
user_id
-i32
- user idtoken
-String
- user’s new one-time-use token to reset their passwordexp_date
-String
- UTC-formatted date time string when thetoken
expiresmsg
-String
- help message
Fields
user_id: i32
token: String
exp_date: String
msg: String
Trait Implementations
sourceimpl Clone for ApiResUserCreateOtp
impl Clone for ApiResUserCreateOtp
sourcefn clone(&self) -> ApiResUserCreateOtp
fn clone(&self) -> ApiResUserCreateOtp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for ApiResUserCreateOtp
impl<'de> Deserialize<'de> for ApiResUserCreateOtp
sourcefn 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
sourceimpl Serialize for ApiResUserCreateOtp
impl Serialize for ApiResUserCreateOtp
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserCreateOtp
impl Send for ApiResUserCreateOtp
impl Sync for ApiResUserCreateOtp
impl Unpin for ApiResUserCreateOtp
impl UnwindSafe for ApiResUserCreateOtp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more