Struct Nuts

Source
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

Source

pub fn new() -> Nuts

Create new Nuts

Source

pub fn nut04(self, nut04_settings: Settings) -> Nuts

Nut04 settings

Source

pub fn nut05(self, nut05_settings: Settings) -> Nuts

Nut05 settings

Source

pub fn nut07(self, supported: bool) -> Nuts

Nut07 settings

Source

pub fn nut08(self, supported: bool) -> Nuts

Nut08 settings

Source

pub fn nut09(self, supported: bool) -> Nuts

Nut09 settings

Source

pub fn nut10(self, supported: bool) -> Nuts

Nut10 settings

Source

pub fn nut11(self, supported: bool) -> Nuts

Nut11 settings

Source

pub fn nut12(self, supported: bool) -> Nuts

Nut12 settings

Source

pub fn nut14(self, supported: bool) -> Nuts

Nut14 settings

Source

pub fn nut15(self, mpp_settings: Vec<MppMethodSettings>) -> Nuts

Nut15 settings

Source

pub fn nut17(self, supported: Vec<SupportedMethods>) -> Nuts

Nut17 settings

Source

pub fn nut19( self, ttl: Option<u64>, cached_endpoints: Vec<CachedEndpoint>, ) -> Nuts

Nut19 settings

Source

pub fn nut20(self, supported: bool) -> Nuts

Nut20 settings

Source

pub fn supported_mint_units(&self) -> Vec<&CurrencyUnit>

Units where minting is supported

Source

pub fn supported_melt_units(&self) -> Vec<&CurrencyUnit>

Units where melting is supported

Trait Implementations§

Source§

impl Clone for Nuts

Source§

fn clone(&self) -> Nuts

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Nuts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Nuts

Source§

fn default() -> Nuts

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Nuts

Source§

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 Hash for Nuts

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Nuts

Source§

fn eq(&self, other: &Nuts) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Nuts

Source§

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
Source§

impl Eq for Nuts

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,