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§
Source§impl Clone for ApiResUserCreateOtp
impl Clone for ApiResUserCreateOtp
Source§fn clone(&self) -> ApiResUserCreateOtp
fn clone(&self) -> ApiResUserCreateOtp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for ApiResUserCreateOtp
impl<'de> Deserialize<'de> for ApiResUserCreateOtp
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
Auto Trait Implementations§
impl Freeze for ApiResUserCreateOtp
impl RefUnwindSafe for ApiResUserCreateOtp
impl Send for ApiResUserCreateOtp
impl Sync for ApiResUserCreateOtp
impl Unpin for ApiResUserCreateOtp
impl UnwindSafe for ApiResUserCreateOtp
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