pub struct Metadata {
pub name: Option<String>,
pub display_name: Option<String>,
pub about: Option<String>,
pub website: Option<String>,
pub picture: Option<String>,
pub banner: Option<String>,
pub nip05: Option<String>,
pub lud06: Option<String>,
pub lud16: Option<String>,
pub custom: HashMap<String, Value>,
}
Expand description
Metadata
Fields§
§name: Option<String>
Name
display_name: Option<String>
Display name
about: Option<String>
Description
website: Option<String>
Website url
picture: Option<String>
Picture url
Banner url
nip05: Option<String>
NIP05 (ex. name@example.com)
lud06: Option<String>
LNURL
lud16: Option<String>
Lightning Address
custom: HashMap<String, Value>
Custom fields
Implementations§
source§impl Metadata
impl Metadata
sourcepub fn display_name<S>(self, display_name: S) -> Self
pub fn display_name<S>(self, display_name: S) -> Self
Set display name
Set banner
Trait Implementations§
source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Metadata
impl PartialEq for Metadata
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.