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 (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 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
impl Eq for InvoiceData
Source§impl JsonSchema for InvoiceData
impl JsonSchema for InvoiceData
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for InvoiceData
impl PartialEq for InvoiceData
Source§impl Serialize for InvoiceData
impl Serialize 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