pub struct NostrSk(/* private fields */);Expand description
A 32-byte Nostr secret key.
Trait Implementations§
Source§impl ByteArray<32> for NostrSk
impl ByteArray<32> for NostrSk
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<'de> Deserialize<'de> for NostrSk
impl<'de> Deserialize<'de> for NostrSk
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 Copy for NostrSk
impl Eq for NostrSk
impl StructuralPartialEq for NostrSk
Auto Trait Implementations§
impl Freeze for NostrSk
impl RefUnwindSafe for NostrSk
impl Send for NostrSk
impl Sync for NostrSk
impl Unpin for NostrSk
impl UnsafeUnpin for NostrSk
impl UnwindSafe for NostrSk
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