pub struct MeltMethodSettings {
pub method: PaymentMethod,
pub unit: CurrencyUnit,
pub min_amount: Option<Amount>,
pub max_amount: Option<Amount>,
pub options: Option<MeltMethodOptions>,
}
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
options: Option<MeltMethodOptions>
Options
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 · Source§const fn clone_from(&mut self, source: &Self)
const 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