pub struct InvoiceData {
pub timestamp: u128,
pub payment_hash: Hash256,
pub attrs: Vec<Attribute>,
}Expand description
The metadata of the invoice.
Fields§
§timestamp: u128The timestamp of the invoice.
payment_hash: Hash256The payment hash of the invoice.
attrs: Vec<Attribute>The attributes of the invoice, e.g. description, expiry time, etc.
Trait Implementations§
Source§impl Clone for InvoiceData
impl Clone for InvoiceData
Source§fn clone(&self) -> InvoiceData
fn clone(&self) -> InvoiceData
Returns a duplicate 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 From<InvoiceData> for RawInvoiceData
impl From<InvoiceData> for RawInvoiceData
Source§fn from(data: InvoiceData) -> Self
fn from(data: InvoiceData) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvoiceData
impl PartialEq for InvoiceData
Source§impl Serialize for InvoiceData
impl Serialize for InvoiceData
Source§impl TryFrom<RawInvoiceData> for InvoiceData
impl TryFrom<RawInvoiceData> for InvoiceData
Source§type Error = VerificationError
type Error = VerificationError
The type returned in the event of a conversion error.
impl Eq for InvoiceData
impl StructuralPartialEq for InvoiceData
Auto Trait Implementations§
impl Freeze for InvoiceData
impl RefUnwindSafe for InvoiceData
impl Send for InvoiceData
impl Sync for InvoiceData
impl Unpin for InvoiceData
impl UnsafeUnpin 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