pub struct Transfer {
pub idx: i32,
pub created_at: i64,
pub updated_at: i64,
pub status: TransferStatus,
pub amount: u64,
pub kind: TransferKind,
pub txid: Option<String>,
pub recipient_id: Option<String>,
pub receive_utxo: Option<Outpoint>,
pub change_utxo: Option<Outpoint>,
pub expiration: Option<i64>,
pub transport_endpoints: Vec<TransferTransportEndpoint>,
}
Expand description
An RGB transfer.
Fields§
§idx: i32
ID of the transfer
created_at: i64
Timestamp of the transfer creation
updated_at: i64
Timestamp of the transfer last update
status: TransferStatus
Status of the transfer
amount: u64
Amount in RGB unit (not considering precision)
kind: TransferKind
Type of the transfer
txid: Option<String>
ID of the Bitcoin transaction anchoring the transfer
recipient_id: Option<String>
Recipient ID (blinded UTXO or Bitcoin script) of an incoming transfer
receive_utxo: Option<Outpoint>
UTXO of an incoming transfer
change_utxo: Option<Outpoint>
Change UTXO of an outgoing transfer
expiration: Option<i64>
Expiration of the transfer
transport_endpoints: Vec<TransferTransportEndpoint>
Transport endpoints for the 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 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