pub struct MintMethodSettings {
pub method: PaymentMethod,
pub unit: CurrencyUnit,
pub min_amount: Option<Amount>,
pub max_amount: Option<Amount>,
pub options: Option<MintMethodOptions>,
}
Expand description
Mint Method Settings
Fields§
§method: PaymentMethod
Payment Method e.g. bolt11
unit: CurrencyUnit
Currency Unit e.g. sat
min_amount: Option<Amount>
Min Amount
max_amount: Option<Amount>
Max Amount
options: Option<MintMethodOptions>
Options
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 · 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