pub struct PaymentProcessorKey {
pub unit: CurrencyUnit,
pub method: PaymentMethod,
}
Expand description
Key used in hashmap of ln backends to identify what unit and payment method it is for
Fields§
§unit: CurrencyUnit
Unit of Payment backend
method: PaymentMethod
Method of payment backend
Implementations§
Source§impl PaymentProcessorKey
impl PaymentProcessorKey
Sourcepub fn new(unit: CurrencyUnit, method: PaymentMethod) -> Self
pub fn new(unit: CurrencyUnit, method: PaymentMethod) -> Self
Create new PaymentProcessorKey
Trait Implementations§
Source§impl Clone for PaymentProcessorKey
impl Clone for PaymentProcessorKey
Source§fn clone(&self) -> PaymentProcessorKey
fn clone(&self) -> PaymentProcessorKey
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 PaymentProcessorKey
impl Debug for PaymentProcessorKey
Source§impl<'de> Deserialize<'de> for PaymentProcessorKey
impl<'de> Deserialize<'de> for PaymentProcessorKey
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 Hash for PaymentProcessorKey
impl Hash for PaymentProcessorKey
Source§impl PartialEq for PaymentProcessorKey
impl PartialEq for PaymentProcessorKey
Source§impl Serialize for PaymentProcessorKey
impl Serialize for PaymentProcessorKey
impl Eq for PaymentProcessorKey
impl StructuralPartialEq for PaymentProcessorKey
Auto Trait Implementations§
impl Freeze for PaymentProcessorKey
impl RefUnwindSafe for PaymentProcessorKey
impl Send for PaymentProcessorKey
impl Sync for PaymentProcessorKey
impl Unpin for PaymentProcessorKey
impl UnwindSafe for PaymentProcessorKey
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