pub struct MeltMethodSettings {
pub method: PaymentMethod,
pub unit: CurrencyUnit,
pub method_name: Option<String>,
pub min_amount: Option<Amount>,
pub max_amount: Option<Amount>,
pub options: Option<MeltMethodOptions>,
}Expand description
Melt Method Settings
Fields§
§method: PaymentMethodPayment Method e.g. bolt11
unit: CurrencyUnitCurrency Unit e.g. sat
method_name: Option<String>Human-readable name for the payment method.
If null or omitted on the wire, wallets should derive it from method
by replacing _ and - with spaces and title-casing each word.
min_amount: Option<Amount>Min Amount
max_amount: Option<Amount>Max Amount
options: Option<MeltMethodOptions>Options
Implementations§
Source§impl MeltMethodSettings
impl MeltMethodSettings
Sourcepub fn method_name(&self) -> String
pub fn method_name(&self) -> String
Human-readable payment method name.
Returns the explicit method_name when present. If it is null or omitted,
derives the name from method by replacing _ and - with spaces and
title-casing each word.
Trait Implementations§
Source§impl Clone for MeltMethodSettings
impl Clone for MeltMethodSettings
Source§fn clone(&self) -> MeltMethodSettings
fn clone(&self) -> MeltMethodSettings
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 MeltMethodSettings
impl Debug for MeltMethodSettings
Source§impl<'de> Deserialize<'de> for MeltMethodSettings
impl<'de> Deserialize<'de> for MeltMethodSettings
Source§fn deserialize<D>(
deserializer: D,
) -> Result<MeltMethodSettings, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<MeltMethodSettings, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MeltMethodSettings
Source§impl Hash for MeltMethodSettings
impl Hash for MeltMethodSettings
Source§impl PartialEq for MeltMethodSettings
impl PartialEq for MeltMethodSettings
Source§impl Serialize for MeltMethodSettings
impl Serialize for MeltMethodSettings
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MeltMethodSettings
Auto Trait Implementations§
impl Freeze for MeltMethodSettings
impl RefUnwindSafe for MeltMethodSettings
impl Send for MeltMethodSettings
impl Sync for MeltMethodSettings
impl Unpin for MeltMethodSettings
impl UnsafeUnpin for MeltMethodSettings
impl UnwindSafe for MeltMethodSettings
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