pub struct ApiReqUserCreateOtp {
pub user_id: i32,
pub email: String,
}
Expand description
ApiReqUserCreateOtp
§Request Type For create_otp
Creating a one-time-use password token for helping a user reset their password (note: users should have a verified email to avoid email spam).
This type is the deserialized input for:
create_otp
(crate::requests::user::create_otp::create_otp]
§Usage
This type is constructed from the deserialized
bytes
(&[u8]
) argument
on the
create_otp
function.
§Arguments
user_id
-i32
- user idemail
-String
- user email
Fields§
§user_id: i32
§email: String
Trait Implementations§
Source§impl Clone for ApiReqUserCreateOtp
impl Clone for ApiReqUserCreateOtp
Source§fn clone(&self) -> ApiReqUserCreateOtp
fn clone(&self) -> ApiReqUserCreateOtp
Returns a copy 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 ApiReqUserCreateOtp
impl<'de> Deserialize<'de> for ApiReqUserCreateOtp
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 ApiReqUserCreateOtp
impl RefUnwindSafe for ApiReqUserCreateOtp
impl Send for ApiReqUserCreateOtp
impl Sync for ApiReqUserCreateOtp
impl Unpin for ApiReqUserCreateOtp
impl UnwindSafe for ApiReqUserCreateOtp
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