pub enum PaymentIdentifier {
Label(String),
OfferId(String),
PaymentHash([u8; 32]),
Bolt12PaymentHash([u8; 32]),
PaymentId([u8; 32]),
CustomId(String),
}
Expand description
Payment identifier types
Variants§
Label(String)
Label identifier
OfferId(String)
Offer ID identifier
PaymentHash([u8; 32])
Payment hash identifier
Bolt12PaymentHash([u8; 32])
Bolt12 payment hash
PaymentId([u8; 32])
Payment id
CustomId(String)
Custom Payment ID
Implementations§
Trait Implementations§
Source§impl Clone for PaymentIdentifier
impl Clone for PaymentIdentifier
Source§fn clone(&self) -> PaymentIdentifier
fn clone(&self) -> PaymentIdentifier
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 PaymentIdentifier
impl Debug for PaymentIdentifier
Source§impl<'de> Deserialize<'de> for PaymentIdentifier
impl<'de> Deserialize<'de> for PaymentIdentifier
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 Display for PaymentIdentifier
impl Display for PaymentIdentifier
Source§impl Hash for PaymentIdentifier
impl Hash for PaymentIdentifier
Source§impl PartialEq for PaymentIdentifier
impl PartialEq for PaymentIdentifier
Source§impl Serialize for PaymentIdentifier
impl Serialize for PaymentIdentifier
impl Eq for PaymentIdentifier
impl StructuralPartialEq for PaymentIdentifier
Auto Trait Implementations§
impl Freeze for PaymentIdentifier
impl RefUnwindSafe for PaymentIdentifier
impl Send for PaymentIdentifier
impl Sync for PaymentIdentifier
impl Unpin for PaymentIdentifier
impl UnwindSafe for PaymentIdentifier
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