pub struct ConfirmEmailRequest {
pub confirm_email: i64,
pub created_for: Option<CreatedFor>,
pub email_consent: String,
pub passthrough: Option<Value>,
pub req_id: Option<i64>,
pub verification_code: String,
}
Expand description
Verifies the email for the user using verification code passed in the request object
Fields§
§confirm_email: i64
Must be 1
\n
created_for: Option<CreatedFor>
[Optional] Purpose of the email verification. If set to ‘account_opening’, the API will only return the verification response without updating the user’s email verification status.\n
email_consent: String
Boolean value: 1 or 0, indicating whether the client has given consent for marketing emails.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
verification_code: String
Email verification code (received from a verify_email
call, which must be done first).\n
Trait Implementations§
Source§impl Clone for ConfirmEmailRequest
impl Clone for ConfirmEmailRequest
Source§fn clone(&self) -> ConfirmEmailRequest
fn clone(&self) -> ConfirmEmailRequest
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 Debug for ConfirmEmailRequest
impl Debug for ConfirmEmailRequest
Source§impl<'de> Deserialize<'de> for ConfirmEmailRequest
impl<'de> Deserialize<'de> for ConfirmEmailRequest
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 ConfirmEmailRequest
impl RefUnwindSafe for ConfirmEmailRequest
impl Send for ConfirmEmailRequest
impl Sync for ConfirmEmailRequest
impl Unpin for ConfirmEmailRequest
impl UnwindSafe for ConfirmEmailRequest
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