pub struct TopupSessionResponse {
pub amount_cents: i64,
pub billing_provider: BillingProvider,
pub completed_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub crypto_chain_id: Option<i64>,
pub crypto_sender_address: Option<String>,
pub crypto_tx_hash: Option<String>,
pub currency: String,
pub id: Uuid,
pub source: TopupSource,
pub status: TopupStatus,
}Expand description
TopupSessionResponse
JSON schema
{
"type": "object",
"required": [
"amount_cents",
"billing_provider",
"created_at",
"currency",
"id",
"source",
"status"
],
"properties": {
"amount_cents": {
"type": "integer",
"format": "int64"
},
"billing_provider": {
"$ref": "#/$defs/BillingProvider"
},
"completed_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"crypto_chain_id": {
"type": "integer",
"format": "int64"
},
"crypto_sender_address": {
"type": "string"
},
"crypto_tx_hash": {
"type": "string"
},
"currency": {
"type": "string"
},
"id": {
"type": "string",
"format": "uuid"
},
"source": {
"$ref": "#/$defs/TopupSource"
},
"status": {
"$ref": "#/$defs/TopupStatus"
}
}
}Fields§
§amount_cents: i64§billing_provider: BillingProvider§completed_at: Option<DateTime<Utc>>§created_at: DateTime<Utc>§crypto_chain_id: Option<i64>§crypto_sender_address: Option<String>§crypto_tx_hash: Option<String>§currency: String§id: Uuid§source: TopupSource§status: TopupStatusTrait Implementations§
Source§impl Clone for TopupSessionResponse
impl Clone for TopupSessionResponse
Source§fn clone(&self) -> TopupSessionResponse
fn clone(&self) -> TopupSessionResponse
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 TopupSessionResponse
impl Debug for TopupSessionResponse
Source§impl<'de> Deserialize<'de> for TopupSessionResponse
impl<'de> Deserialize<'de> for TopupSessionResponse
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<&TopupSessionResponse> for TopupSessionResponse
impl From<&TopupSessionResponse> for TopupSessionResponse
Source§fn from(value: &TopupSessionResponse) -> Self
fn from(value: &TopupSessionResponse) -> Self
Converts to this type from the input type.
Source§impl From<TopupSessionResponse> for ModelRelayApi
impl From<TopupSessionResponse> for ModelRelayApi
Source§fn from(value: TopupSessionResponse) -> Self
fn from(value: TopupSessionResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TopupSessionResponse
impl PartialEq for TopupSessionResponse
Source§impl Serialize for TopupSessionResponse
impl Serialize for TopupSessionResponse
impl StructuralPartialEq for TopupSessionResponse
Auto Trait Implementations§
impl Freeze for TopupSessionResponse
impl RefUnwindSafe for TopupSessionResponse
impl Send for TopupSessionResponse
impl Sync for TopupSessionResponse
impl Unpin for TopupSessionResponse
impl UnwindSafe for TopupSessionResponse
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