pub struct MeltMethodSettings {
pub method: PaymentMethod,
pub unit: CurrencyUnit,
pub min_amount: Option<Amount>,
pub max_amount: Option<Amount>,
pub amountless: bool,
}
Expand description
Melt 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
amountless: bool
Amountless
Trait Implementations§
Source§impl Clone for MeltMethodSettings
impl Clone for MeltMethodSettings
Source§fn clone(&self) -> MeltMethodSettings
fn clone(&self) -> MeltMethodSettings
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 MeltMethodSettings
impl Debug for MeltMethodSettings
Source§impl Default for MeltMethodSettings
impl Default for MeltMethodSettings
Source§fn default() -> MeltMethodSettings
fn default() -> MeltMethodSettings
Returns the “default value” for a type. Read more
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
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 Eq for MeltMethodSettings
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 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