pub struct NUT05Settings {
pub methods: Vec<MeltMethodSettings>,
pub disabled: bool,
}
Expand description
Melt Settings
Fields§
§methods: Vec<MeltMethodSettings>
Methods to melt
disabled: bool
Minting disabled
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn get_settings(
&self,
unit: &CurrencyUnit,
method: &PaymentMethod,
) -> Option<MeltMethodSettings>
pub fn get_settings( &self, unit: &CurrencyUnit, method: &PaymentMethod, ) -> Option<MeltMethodSettings>
Get MeltMethodSettings
for unit method pair
Sourcepub fn remove_settings(
&mut self,
unit: &CurrencyUnit,
method: &PaymentMethod,
) -> Option<MeltMethodSettings>
pub fn remove_settings( &mut self, unit: &CurrencyUnit, method: &PaymentMethod, ) -> Option<MeltMethodSettings>
Remove MeltMethodSettings
for unit method pair
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Settings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Settings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Settings
impl Serialize for Settings
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 Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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