pub struct Transfer {
pub transfer_id: u64,
pub spend_id: String,
pub user_id: u64,
pub asset: CryptoCurrencyCode,
pub amount: Decimal,
pub status: TransferStatus,
pub completed_at: DateTime<Utc>,
pub comment: Option<String>,
}Fields§
§transfer_id: u64Unique ID for this transfer.
spend_id: StringUnique UTF-8 string.
user_id: u64Telegram user ID the transfer was sent to.
asset: CryptoCurrencyCodeCryptocurrency alphabetic code. Currently, can be “USDT”, “TON”, “BTC”, “ETH”, “LTC”, “BNB”, “TRX” and “USDC” (and “JET” for testnet).
amount: DecimalAmount of the transfer in float.
status: TransferStatusStatus of the transfer, can only be “completed”.
completed_at: DateTime<Utc>Date the transfer was completed in ISO 8601 format.
comment: Option<String>Optional. Comment for this transfer.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transfer
impl<'de> Deserialize<'de> for Transfer
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 Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnwindSafe for Transfer
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