pub struct EventPointer {
pub id: Id,
pub relays: Vec<UncheckedUrl>,
}
Expand description
An 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
Implementations§
Source§impl EventPointer
impl EventPointer
Sourcepub fn try_as_bech32_string(&self) -> Result<String, Error>
pub fn try_as_bech32_string(&self) -> Result<String, Error>
Export as a bech32 encoded string (“nevent”)
Sourcepub fn try_from_bech32_string(s: &str) -> Result<EventPointer, Error>
pub fn try_from_bech32_string(s: &str) -> Result<EventPointer, Error>
Import from a bech32 encoded string (“nevent”)
Trait Implementations§
Source§impl Clone for EventPointer
impl Clone for EventPointer
Source§fn clone(&self) -> EventPointer
fn clone(&self) -> EventPointer
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventPointer
impl Debug for EventPointer
Source§impl<'de> Deserialize<'de> for EventPointer
impl<'de> Deserialize<'de> for EventPointer
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 EventPointer
impl PartialEq for EventPointer
Source§impl Serialize for EventPointer
impl Serialize for EventPointer
impl StructuralPartialEq for EventPointer
Auto Trait Implementations§
impl Freeze for EventPointer
impl RefUnwindSafe for EventPointer
impl Send for EventPointer
impl Sync for EventPointer
impl Unpin for EventPointer
impl UnwindSafe for EventPointer
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