pub struct Nip05Document {
pub names: HashMap<String, String>,
pub relays: Option<HashMap<String, Vec<String>>>,
}Expand description
NIP-05 response document (the JSON served at
.well-known/nostr.json?name=<local>).
Fields§
§names: HashMap<String, String>§relays: Option<HashMap<String, Vec<String>>>Trait Implementations§
Source§impl Clone for Nip05Document
impl Clone for Nip05Document
Source§fn clone(&self) -> Nip05Document
fn clone(&self) -> Nip05Document
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Nip05Document
impl Debug for Nip05Document
Source§impl<'de> Deserialize<'de> for Nip05Document
impl<'de> Deserialize<'de> for Nip05Document
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
Auto Trait Implementations§
impl Freeze for Nip05Document
impl RefUnwindSafe for Nip05Document
impl Send for Nip05Document
impl Sync for Nip05Document
impl Unpin for Nip05Document
impl UnsafeUnpin for Nip05Document
impl UnwindSafe for Nip05Document
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