#[non_exhaustive]pub struct RgbInvoice {
pub transports: Vec<RgbTransport>,
pub contract: Option<ContractId>,
pub schema: Option<SchemaId>,
pub assignment_name: Option<FieldName>,
pub assignment_state: Option<InvoiceState>,
pub beneficiary: XChainNet<Beneficiary>,
pub expiry: Option<i64>,
pub unknown_query: IndexMap<String, String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.transports: Vec<RgbTransport>§contract: Option<ContractId>§schema: Option<SchemaId>§assignment_name: Option<FieldName>§assignment_state: Option<InvoiceState>§beneficiary: XChainNet<Beneficiary>§expiry: Option<i64>UTC unix timestamp
unknown_query: IndexMap<String, String>Implementations§
Source§impl RgbInvoice
impl RgbInvoice
pub fn chain_network(&self) -> ChainNet
pub fn address_network(&self) -> KnownHrp
pub fn layer1(&self) -> Layer1
Trait Implementations§
Source§impl Clone for RgbInvoice
impl Clone for RgbInvoice
Source§fn clone(&self) -> RgbInvoice
fn clone(&self) -> RgbInvoice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RgbInvoice
impl Debug for RgbInvoice
Source§impl Display for RgbInvoice
impl Display for RgbInvoice
impl Eq for RgbInvoice
Source§impl FromStr for RgbInvoice
impl FromStr for RgbInvoice
Source§type Err = InvoiceParseError
type Err = InvoiceParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<RgbInvoice, <RgbInvoice as FromStr>::Err>
fn from_str(s: &str) -> Result<RgbInvoice, <RgbInvoice as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for RgbInvoice
impl PartialEq for RgbInvoice
impl StructuralPartialEq for RgbInvoice
Auto Trait Implementations§
impl Freeze for RgbInvoice
impl RefUnwindSafe for RgbInvoice
impl Send for RgbInvoice
impl Sync for RgbInvoice
impl Unpin for RgbInvoice
impl UnsafeUnpin for RgbInvoice
impl UnwindSafe for RgbInvoice
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.