pub struct MintMethodSettings {
pub method: PaymentMethod,
pub unit: CurrencyUnit,
pub method_name: Option<String>,
pub min_amount: Option<Amount>,
pub max_amount: Option<Amount>,
pub options: Option<MintMethodOptions>,
}Expand description
Mint 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<MintMethodOptions>Options
Implementations§
Source§impl MintMethodSettings
impl MintMethodSettings
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 MintMethodSettings
impl Clone for MintMethodSettings
Source§fn clone(&self) -> MintMethodSettings
fn clone(&self) -> MintMethodSettings
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 MintMethodSettings
impl Debug for MintMethodSettings
Source§impl<'de> Deserialize<'de> for MintMethodSettings
impl<'de> Deserialize<'de> for MintMethodSettings
Source§fn deserialize<D>(
deserializer: D,
) -> Result<MintMethodSettings, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<MintMethodSettings, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MintMethodSettings
Source§impl Hash for MintMethodSettings
impl Hash for MintMethodSettings
Source§impl PartialEq for MintMethodSettings
impl PartialEq for MintMethodSettings
Source§impl Serialize for MintMethodSettings
impl Serialize for MintMethodSettings
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 MintMethodSettings
Auto Trait Implementations§
impl Freeze for MintMethodSettings
impl RefUnwindSafe for MintMethodSettings
impl Send for MintMethodSettings
impl Sync for MintMethodSettings
impl Unpin for MintMethodSettings
impl UnsafeUnpin for MintMethodSettings
impl UnwindSafe for MintMethodSettings
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