pub struct NAddr {
pub d: String,
pub relays: Vec<UncheckedUrl>,
pub kind: EventKind,
pub author: PublicKey,
}
Expand description
An ‘naddr’: data to address a possibly parameterized replaceable event (d-tag, kind, author, and relays)
Fields§
§d: String
the ‘d’ tag of the Event, or an empty string if the kind is not parameterized
relays: Vec<UncheckedUrl>
Some of the relays where this could be found
kind: EventKind
Kind
Author
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NAddr
impl<'de> Deserialize<'de> for NAddr
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
impl Eq for NAddr
Auto Trait Implementations§
impl Freeze for NAddr
impl RefUnwindSafe for NAddr
impl Send for NAddr
impl Sync for NAddr
impl Unpin for NAddr
impl UnwindSafe for NAddr
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