pub struct MintInfo {
pub name: Option<String>,
pub pubkey: Option<PublicKey>,
pub version: Option<MintVersion>,
pub description: Option<String>,
pub description_long: Option<String>,
pub contact: Option<Vec<ContactInfo>>,
pub nuts: Nuts,
pub icon_url: Option<String>,
pub urls: Option<Vec<String>>,
pub motd: Option<String>,
pub time: Option<u64>,
pub tos_url: Option<String>,
}
Expand description
Mint Info [NUT-06]
Fields§
§name: Option<String>
name of the mint and should be recognizable
pubkey: Option<PublicKey>
hex pubkey of the mint
version: Option<MintVersion>
implementation name and the version running
description: Option<String>
short description of the mint
description_long: Option<String>
long description
contact: Option<Vec<ContactInfo>>
Contact info
nuts: Nuts
shows which NUTs the mint supports
icon_url: Option<String>
Mint’s icon URL
urls: Option<Vec<String>>
Mint’s endpoint URLs
motd: Option<String>
message of the day that the wallet must display to the user
time: Option<u64>
server unix timestamp
tos_url: Option<String>
terms of url service of the mint
Implementations§
Source§impl MintInfo
impl MintInfo
Sourcepub fn version(self, mint_version: MintVersion) -> MintInfo
pub fn version(self, mint_version: MintVersion) -> MintInfo
Set MintVersion
Sourcepub fn description<S>(self, description: S) -> MintInfo
pub fn description<S>(self, description: S) -> MintInfo
Set description
Sourcepub fn long_description<S>(self, description_long: S) -> MintInfo
pub fn long_description<S>(self, description_long: S) -> MintInfo
Set long description
Sourcepub fn contact_info(self, contact_info: Vec<ContactInfo>) -> MintInfo
pub fn contact_info(self, contact_info: Vec<ContactInfo>) -> MintInfo
Set contact info
Sourcepub fn protected_endpoints(&self) -> HashMap<ProtectedEndpoint, AuthRequired>
pub fn protected_endpoints(&self) -> HashMap<ProtectedEndpoint, AuthRequired>
Get protected endpoints
Sourcepub fn openid_discovery(&self) -> Option<String>
pub fn openid_discovery(&self) -> Option<String>
Get Openid discovery of the mint if it is set
Sourcepub fn bat_max_mint(&self) -> Option<u64>
pub fn bat_max_mint(&self) -> Option<u64>
Max bat mint
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MintInfo
impl<'de> Deserialize<'de> for MintInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MintInfo
impl Serialize for MintInfo
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 MintInfo
impl StructuralPartialEq for MintInfo
Auto Trait Implementations§
impl Freeze for MintInfo
impl RefUnwindSafe for MintInfo
impl Send for MintInfo
impl Sync for MintInfo
impl Unpin for MintInfo
impl UnwindSafe for MintInfo
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