Struct mutiny_core::nodemanager::MutinyInvoice
source · pub struct MutinyInvoice {
pub bolt11: Option<Bolt11Invoice>,
pub description: Option<String>,
pub payment_hash: Hash,
pub preimage: Option<String>,
pub payee_pubkey: Option<PublicKey>,
pub amount_sats: Option<u64>,
pub expire: u64,
pub status: HTLCStatus,
pub fees_paid: Option<u64>,
pub inbound: bool,
pub labels: Vec<String>,
pub last_updated: u64,
}Fields§
§bolt11: Option<Bolt11Invoice>§description: Option<String>§payment_hash: Hash§preimage: Option<String>§payee_pubkey: Option<PublicKey>§amount_sats: Option<u64>§expire: u64§status: HTLCStatus§fees_paid: Option<u64>§inbound: bool§labels: Vec<String>§last_updated: u64Implementations§
Trait Implementations§
source§impl Clone for MutinyInvoice
impl Clone for MutinyInvoice
source§fn clone(&self) -> MutinyInvoice
fn clone(&self) -> MutinyInvoice
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 MutinyInvoice
impl Debug for MutinyInvoice
source§impl<'de> Deserialize<'de> for MutinyInvoice
impl<'de> Deserialize<'de> for MutinyInvoice
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<Bolt11Invoice> for MutinyInvoice
impl From<Bolt11Invoice> for MutinyInvoice
source§fn from(value: Bolt11Invoice) -> Self
fn from(value: Bolt11Invoice) -> Self
Converts to this type from the input type.
source§impl PartialEq for MutinyInvoice
impl PartialEq for MutinyInvoice
source§fn eq(&self, other: &MutinyInvoice) -> bool
fn eq(&self, other: &MutinyInvoice) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MutinyInvoice
impl Serialize for MutinyInvoice
impl Eq for MutinyInvoice
impl StructuralEq for MutinyInvoice
impl StructuralPartialEq for MutinyInvoice
Auto Trait Implementations§
impl RefUnwindSafe for MutinyInvoice
impl Send for MutinyInvoice
impl Sync for MutinyInvoice
impl Unpin for MutinyInvoice
impl UnwindSafe for MutinyInvoice
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.