pub struct SubmitOnrampVerificationRequest {
pub otp_code: SubmitOnrampVerificationRequestOtpCode,
}Expand description
Request body for submitting an OTP code to complete an onramp verification.
JSON schema
{
"description": "Request body for submitting an OTP code to complete an onramp verification.",
"type": "object",
"required": [
"otpCode"
],
"properties": {
"otpCode": {
"description": "The 6-digit OTP code the user received.",
"examples": [
"123456"
],
"type": "string",
"pattern": "^\\d{6}$"
}
}
}Fields§
§otp_code: SubmitOnrampVerificationRequestOtpCodeThe 6-digit OTP code the user received.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SubmitOnrampVerificationRequest
impl<'de> Deserialize<'de> for SubmitOnrampVerificationRequest
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
Source§impl From<&SubmitOnrampVerificationRequest> for SubmitOnrampVerificationRequest
impl From<&SubmitOnrampVerificationRequest> for SubmitOnrampVerificationRequest
Source§fn from(value: &SubmitOnrampVerificationRequest) -> Self
fn from(value: &SubmitOnrampVerificationRequest) -> Self
Converts to this type from the input type.
Source§impl From<SubmitOnrampVerificationRequest> for SubmitOnrampVerificationRequest
impl From<SubmitOnrampVerificationRequest> for SubmitOnrampVerificationRequest
Source§fn from(value: SubmitOnrampVerificationRequest) -> Self
fn from(value: SubmitOnrampVerificationRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SubmitOnrampVerificationRequest> for SubmitOnrampVerificationRequest
impl TryFrom<SubmitOnrampVerificationRequest> for SubmitOnrampVerificationRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SubmitOnrampVerificationRequest,
) -> Result<Self, ConversionError>
fn try_from( value: SubmitOnrampVerificationRequest, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SubmitOnrampVerificationRequest
impl RefUnwindSafe for SubmitOnrampVerificationRequest
impl Send for SubmitOnrampVerificationRequest
impl Sync for SubmitOnrampVerificationRequest
impl Unpin for SubmitOnrampVerificationRequest
impl UnsafeUnpin for SubmitOnrampVerificationRequest
impl UnwindSafe for SubmitOnrampVerificationRequest
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