Struct rgb_lib::wallet::InvoiceData
source · pub struct InvoiceData {
pub recipient_id: String,
pub asset_iface: Option<AssetIface>,
pub asset_id: Option<String>,
pub amount: Option<u64>,
pub network: Option<BitcoinNetwork>,
pub expiration_timestamp: Option<i64>,
pub transport_endpoints: Vec<String>,
}
Expand description
The data of an RGB invoice.
Fields§
§recipient_id: String
ID of the receive operation (blinded UTXO or Bitcoin script)
asset_iface: Option<AssetIface>
RGB interface
asset_id: Option<String>
RGB asset ID
amount: Option<u64>
RGB amount
network: Option<BitcoinNetwork>
Bitcoin network
expiration_timestamp: Option<i64>
Invoice expiration
transport_endpoints: Vec<String>
Transport endpoints
Trait Implementations§
source§impl Clone for InvoiceData
impl Clone for InvoiceData
source§fn clone(&self) -> InvoiceData
fn clone(&self) -> InvoiceData
Returns a copy 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 InvoiceData
impl Debug for InvoiceData
source§impl<'de> Deserialize<'de> for InvoiceData
impl<'de> Deserialize<'de> for InvoiceData
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 Hash for InvoiceData
impl Hash for InvoiceData
source§impl PartialEq for InvoiceData
impl PartialEq for InvoiceData
source§fn eq(&self, other: &InvoiceData) -> bool
fn eq(&self, other: &InvoiceData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InvoiceData
impl Serialize for InvoiceData
impl Eq for InvoiceData
impl StructuralEq for InvoiceData
impl StructuralPartialEq for InvoiceData
Auto Trait Implementations§
impl RefUnwindSafe for InvoiceData
impl Send for InvoiceData
impl Sync for InvoiceData
impl Unpin for InvoiceData
impl UnwindSafe for InvoiceData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.