pub enum CreateOnrampMobileSessionRequest {
Variant0 {
challenge: OnrampMobileChallengeToken,
ios: IosAssertionPayload,
},
Variant1 {
android: AndroidIntegrityPayload,
challenge: OnrampMobileChallengeToken,
},
}Expand description
Request body for creating an onramp mobile session.
JSON schema
{
"description": "Request body for creating an onramp mobile session.",
"type": "object",
"oneOf": [
{
"title": "iOS",
"required": [
"ios"
]
},
{
"title": "Android",
"required": [
"android"
]
}
],
"required": [
"challenge"
],
"properties": {
"android": {
"$ref": "#/components/schemas/AndroidIntegrityPayload"
},
"challenge": {
"description": "The challenge returned by the [Create Onramp Mobile Challenge](#operation/createOnrampMobileChallenge) endpoint. Must be passed back exactly as received — do not decode or modify.",
"allOf": [
{
"$ref": "#/components/schemas/OnrampMobileChallengeToken"
}
]
},
"ios": {
"$ref": "#/components/schemas/IosAssertionPayload"
}
}
}Variants§
Variant0
Fields
§
challenge: OnrampMobileChallengeTokenThe challenge returned by the Create Onramp Mobile Challenge endpoint. Must be passed back exactly as received — do not decode or modify.
§
ios: IosAssertionPayloadVariant1
Fields
§
android: AndroidIntegrityPayload§
challenge: OnrampMobileChallengeTokenThe challenge returned by the Create Onramp Mobile Challenge endpoint. Must be passed back exactly as received — do not decode or modify.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateOnrampMobileSessionRequest
impl<'de> Deserialize<'de> for CreateOnrampMobileSessionRequest
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<&CreateOnrampMobileSessionRequest> for CreateOnrampMobileSessionRequest
impl From<&CreateOnrampMobileSessionRequest> for CreateOnrampMobileSessionRequest
Source§fn from(value: &CreateOnrampMobileSessionRequest) -> Self
fn from(value: &CreateOnrampMobileSessionRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateOnrampMobileSessionRequest
impl RefUnwindSafe for CreateOnrampMobileSessionRequest
impl Send for CreateOnrampMobileSessionRequest
impl Sync for CreateOnrampMobileSessionRequest
impl Unpin for CreateOnrampMobileSessionRequest
impl UnsafeUnpin for CreateOnrampMobileSessionRequest
impl UnwindSafe for CreateOnrampMobileSessionRequest
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