pub enum MeltOptions {
Mpp {
mpp: Mpp,
},
Amountless {
amountless: Amountless,
},
}
Expand description
Melt Options
Variants§
Implementations§
Source§impl MeltOptions
impl MeltOptions
Sourcepub fn new_mpp<A>(amount: A) -> MeltOptions
pub fn new_mpp<A>(amount: A) -> MeltOptions
Create new MeltOptions::Mpp
Sourcepub fn new_amountless<A>(amount_msat: A) -> MeltOptions
pub fn new_amountless<A>(amount_msat: A) -> MeltOptions
Create new MeltOptions::Amountless
Sourcepub fn amount_msat(&self) -> Amount
pub fn amount_msat(&self) -> Amount
Payment amount
Trait Implementations§
Source§impl Clone for MeltOptions
impl Clone for MeltOptions
Source§fn clone(&self) -> MeltOptions
fn clone(&self) -> MeltOptions
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 MeltOptions
impl Debug for MeltOptions
Source§impl<'de> Deserialize<'de> for MeltOptions
impl<'de> Deserialize<'de> for MeltOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeltOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeltOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MeltOptions
impl Hash for MeltOptions
Source§impl PartialEq for MeltOptions
impl PartialEq for MeltOptions
Source§impl Serialize for MeltOptions
impl Serialize for MeltOptions
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 Copy for MeltOptions
impl Eq for MeltOptions
impl StructuralPartialEq for MeltOptions
Auto Trait Implementations§
impl Freeze for MeltOptions
impl RefUnwindSafe for MeltOptions
impl Send for MeltOptions
impl Sync for MeltOptions
impl Unpin for MeltOptions
impl UnwindSafe for MeltOptions
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