Struct restapi::requests::user::consume_user_otp::ApiResUserConsumeOtp
source · [−]Expand description
ApiResUserConsumeOtp
Response type for consumer_user_otp
Notify the client that: the user’s one-time-use password reset token was consumed
Usage
This type is the serialized output for the function:
consume_user_otp
(crate::requests::user::consume_user_otp::consume_user_otp]
and contained within the
hyper Body
of the
hyper Response
sent back to the client.
Arguments
user_id
-i32
- user idotp_id
-i32
- users_otp primary db key idmsg
-String
- help message
Fields
user_id: i32
otp_id: i32
msg: String
Trait Implementations
sourceimpl Clone for ApiResUserConsumeOtp
impl Clone for ApiResUserConsumeOtp
sourcefn clone(&self) -> ApiResUserConsumeOtp
fn clone(&self) -> ApiResUserConsumeOtp
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 ApiResUserConsumeOtp
impl<'de> Deserialize<'de> for ApiResUserConsumeOtp
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 ApiResUserConsumeOtp
impl Serialize for ApiResUserConsumeOtp
Auto Trait Implementations
impl RefUnwindSafe for ApiResUserConsumeOtp
impl Send for ApiResUserConsumeOtp
impl Sync for ApiResUserConsumeOtp
impl Unpin for ApiResUserConsumeOtp
impl UnwindSafe for ApiResUserConsumeOtp
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