pub struct MintMethodSettings {
pub method: PaymentMethod,
pub unit: CurrencyUnit,
pub min_amount: Option<Amount>,
pub max_amount: Option<Amount>,
pub description: bool,
}Expand description
Mint Method Settings
Fields§
§method: PaymentMethodPayment Method e.g. bolt11
unit: CurrencyUnitCurrency Unit e.g. sat
min_amount: Option<Amount>Min Amount
max_amount: Option<Amount>Max Amount
description: boolQuote Description
Trait Implementations§
Source§impl Clone for MintMethodSettings
impl Clone for MintMethodSettings
Source§fn clone(&self) -> MintMethodSettings
fn clone(&self) -> MintMethodSettings
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 MintMethodSettings
impl Debug for MintMethodSettings
Source§impl Default for MintMethodSettings
impl Default for MintMethodSettings
Source§fn default() -> MintMethodSettings
fn default() -> MintMethodSettings
Returns the “default value” for a type. Read more
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
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 Eq for MintMethodSettings
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 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