pub struct Offramp {
pub deposit_instructions: OfframpDepositInstructions,
pub id: String,
pub status: OfframpStatus,
}Expand description
Offramp
JSON schema
{
"type": "object",
"required": [
"deposit_instructions",
"id",
"status"
],
"properties": {
"deposit_instructions": {
"type": "object",
"required": [
"amount",
"chain",
"currency",
"from_address",
"to_address"
],
"properties": {
"amount": {
"type": "string"
},
"chain": {
"type": "string",
"enum": [
"arbitrum",
"base",
"ethereum",
"optimism",
"polygon"
]
},
"currency": {
"type": "string",
"enum": [
"usdc"
]
},
"from_address": {
"type": "string"
},
"to_address": {
"type": "string"
}
}
},
"id": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"awaiting_funds",
"canceled",
"error",
"funds_received",
"in_review",
"payment_processed",
"payment_submitted",
"refunded",
"returned",
"undeliverable"
]
}
}
}Fields§
§deposit_instructions: OfframpDepositInstructions§id: String§status: OfframpStatusTrait Implementations§
Source§impl<'de> Deserialize<'de> for Offramp
impl<'de> Deserialize<'de> for Offramp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Offramp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Offramp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Offramp
impl Serialize for Offramp
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Offramp
impl RefUnwindSafe for Offramp
impl Send for Offramp
impl Sync for Offramp
impl Unpin for Offramp
impl UnwindSafe for Offramp
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