pub struct NEvent {
pub id: Id,
pub relays: Vec<UncheckedUrl>,
pub kind: Option<EventKind>,
pub author: Option<PublicKey>,
}
Expand description
An ‘nevent’: event id along with some relays in which that event may be found.
Fields§
§id: Id
Event id
relays: Vec<UncheckedUrl>
Some of the relays where this could be in
kind: Option<EventKind>
Kind (optional)
Author (optional)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NEvent
impl<'de> Deserialize<'de> for NEvent
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 StructuralPartialEq for NEvent
Auto Trait Implementations§
impl Freeze for NEvent
impl RefUnwindSafe for NEvent
impl Send for NEvent
impl Sync for NEvent
impl Unpin for NEvent
impl UnwindSafe for NEvent
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