#[repr(transparent)]pub struct NostrEventId(pub [u8; 32]);Expand description
A 32-byte Nostr event id.
Tuple Fields§
§0: [u8; 32]Trait Implementations§
Source§impl AsRef<[u8]> for NostrEventId
impl AsRef<[u8]> for NostrEventId
Source§impl ByteArray<32> for NostrEventId
impl ByteArray<32> for NostrEventId
fn from_array(array: [u8; 32]) -> Self
fn to_array(&self) -> [u8; 32]
fn as_array(&self) -> &[u8; 32]
fn as_slice(&self) -> &[u8] ⓘ
fn to_vec(&self) -> Vec<u8> ⓘ
fn try_from_slice(slice: &[u8]) -> Result<Self, TryFromSliceError>
fn try_from_vec(vec: Vec<u8>) -> Result<Self, TryFromSliceError>
fn from_hex(s: &str) -> Result<Self, DecodeError>
fn to_hex(&self) -> String
fn as_hex_display(&self) -> HexDisplay<'_>
fn fmt_as_hex(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§impl Clone for NostrEventId
impl Clone for NostrEventId
Source§fn clone(&self) -> NostrEventId
fn clone(&self) -> NostrEventId
Returns a duplicate of the value. Read more
1.0.0 · 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 NostrEventId
impl Debug for NostrEventId
Source§impl<'de> Deserialize<'de> for NostrEventId
impl<'de> Deserialize<'de> for NostrEventId
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 Display for NostrEventId
impl Display for NostrEventId
Source§impl Hash for NostrEventId
impl Hash for NostrEventId
Source§impl PartialEq for NostrEventId
impl PartialEq for NostrEventId
Source§impl RefCast for NostrEventId
impl RefCast for NostrEventId
Source§impl Serialize for NostrEventId
impl Serialize for NostrEventId
impl Copy for NostrEventId
impl Eq for NostrEventId
impl StructuralPartialEq for NostrEventId
Auto Trait Implementations§
impl Freeze for NostrEventId
impl RefUnwindSafe for NostrEventId
impl Send for NostrEventId
impl Sync for NostrEventId
impl Unpin for NostrEventId
impl UnsafeUnpin for NostrEventId
impl UnwindSafe for NostrEventId
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