pub struct AlbyInvoice {
pub identifier: String,
pub type_: String,
pub memo: Option<String>,
pub state: String,
pub metadata: Value,
pub payer_name: Option<String>,
pub num_sats: u64,
pub created_at: DateTime<Utc>,
pub boostagram: Option<Record>,
}Expand description
Alby invoice obtained via webhook request.
Fields§
§identifier: String24 alphanumeric characters
type_: Stringe.g., “incoming” or “outgoing”
memo: Option<String>Description.
state: StringState of the invoice, e.g., “SETTLED”>
metadata: ValueArbitrary data added during the invoice creation.
payer_name: Option<String>Payer name.
num_sats: u64Amount in sats.
created_at: DateTime<Utc>When the invoice was created.
boostagram: Option<Record>bLIP-10 TLV record.
Trait Implementations§
Source§impl Clone for AlbyInvoice
impl Clone for AlbyInvoice
Source§fn clone(&self) -> AlbyInvoice
fn clone(&self) -> AlbyInvoice
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 AlbyInvoice
impl Debug for AlbyInvoice
Source§impl<'de> Deserialize<'de> for AlbyInvoice
impl<'de> Deserialize<'de> for AlbyInvoice
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 TryFrom<AlbyInvoice> for CreateInvoiceMetadata
impl TryFrom<AlbyInvoice> for CreateInvoiceMetadata
Auto Trait Implementations§
impl Freeze for AlbyInvoice
impl RefUnwindSafe for AlbyInvoice
impl Send for AlbyInvoice
impl Sync for AlbyInvoice
impl Unpin for AlbyInvoice
impl UnsafeUnpin for AlbyInvoice
impl UnwindSafe for AlbyInvoice
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