pub struct Nuts {Show 15 fields
pub nut04: Settings,
pub nut05: Settings,
pub nut07: SupportedSettings,
pub nut08: SupportedSettings,
pub nut09: SupportedSettings,
pub nut10: SupportedSettings,
pub nut11: SupportedSettings,
pub nut12: SupportedSettings,
pub nut14: SupportedSettings,
pub nut15: Settings,
pub nut17: SupportedSettings,
pub nut19: Settings,
pub nut20: SupportedSettings,
pub nut21: Option<Settings>,
pub nut22: Option<Settings>,
}
Expand description
Supported nuts and settings
Fields§
§nut04: Settings
NUT04 Settings
nut05: Settings
NUT05 Settings
nut07: SupportedSettings
NUT07 Settings
nut08: SupportedSettings
NUT08 Settings
nut09: SupportedSettings
NUT09 Settings
nut10: SupportedSettings
NUT10 Settings
nut11: SupportedSettings
NUT11 Settings
nut12: SupportedSettings
NUT12 Settings
nut14: SupportedSettings
NUT14 Settings
nut15: Settings
NUT15 Settings
nut17: SupportedSettings
NUT17 Settings
nut19: Settings
NUT19 Settings
nut20: SupportedSettings
NUT20 Settings
nut21: Option<Settings>
NUT21 Settings
nut22: Option<Settings>
NUT22 Settings
Implementations§
Source§impl Nuts
impl Nuts
Sourcepub fn nut15(self, mpp_settings: Vec<MppMethodSettings>) -> Nuts
pub fn nut15(self, mpp_settings: Vec<MppMethodSettings>) -> Nuts
Nut15 settings
Sourcepub fn nut17(self, supported: Vec<SupportedMethods>) -> Nuts
pub fn nut17(self, supported: Vec<SupportedMethods>) -> Nuts
Nut17 settings
Sourcepub fn nut19(
self,
ttl: Option<u64>,
cached_endpoints: Vec<CachedEndpoint>,
) -> Nuts
pub fn nut19( self, ttl: Option<u64>, cached_endpoints: Vec<CachedEndpoint>, ) -> Nuts
Nut19 settings
Sourcepub fn supported_mint_units(&self) -> Vec<&CurrencyUnit>
pub fn supported_mint_units(&self) -> Vec<&CurrencyUnit>
Units where minting is supported
Sourcepub fn supported_melt_units(&self) -> Vec<&CurrencyUnit>
pub fn supported_melt_units(&self) -> Vec<&CurrencyUnit>
Units where melting is supported
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nuts
impl<'de> Deserialize<'de> for Nuts
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Nuts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Nuts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Nuts
impl Serialize for Nuts
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 Nuts
impl StructuralPartialEq for Nuts
Auto Trait Implementations§
impl Freeze for Nuts
impl RefUnwindSafe for Nuts
impl Send for Nuts
impl Sync for Nuts
impl Unpin for Nuts
impl UnwindSafe for Nuts
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