pub struct NamespaceId(/* private fields */);
Expand description
NamespacePublicKey
in bytes
Implementations§
Source§impl NamespaceId
impl NamespaceId
Sourcepub fn public_key<S: PublicKeyStore>(
&self,
store: &S,
) -> Result<NamespacePublicKey, SignatureError>
pub fn public_key<S: PublicKeyStore>( &self, store: &S, ) -> Result<NamespacePublicKey, SignatureError>
Convert into NamespacePublicKey
by fetching from a PublicKeyStore
.
Fails if the bytes of this NamespaceId
are not a valid [ed25519_dalek
] curve point.
Sourcepub fn into_public_key(&self) -> Result<NamespacePublicKey, SignatureError>
pub fn into_public_key(&self) -> Result<NamespacePublicKey, SignatureError>
Convert into NamespacePublicKey
.
Fails if the bytes of this NamespaceId
are not a valid [ed25519_dalek
] curve point.
Trait Implementations§
Source§impl AsRef<[u8]> for NamespaceId
impl AsRef<[u8]> for NamespaceId
Source§impl Clone for NamespaceId
impl Clone for NamespaceId
Source§fn clone(&self) -> NamespaceId
fn clone(&self) -> NamespaceId
Returns a copy 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 NamespaceId
impl Debug for NamespaceId
Source§impl Default for NamespaceId
impl Default for NamespaceId
Source§fn default() -> NamespaceId
fn default() -> NamespaceId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NamespaceId
impl<'de> Deserialize<'de> for NamespaceId
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 NamespaceId
impl Display for NamespaceId
Source§impl From<&NamespacePublicKey> for NamespaceId
impl From<&NamespacePublicKey> for NamespaceId
Source§fn from(value: &NamespacePublicKey) -> Self
fn from(value: &NamespacePublicKey) -> Self
Converts to this type from the input type.
Source§impl From<NamespaceId> for [u8; 32]
impl From<NamespaceId> for [u8; 32]
Source§fn from(value: NamespaceId) -> Self
fn from(value: NamespaceId) -> Self
Converts to this type from the input type.
Source§impl From<NamespaceId> for Capability
impl From<NamespaceId> for Capability
Source§fn from(value: NamespaceId) -> Self
fn from(value: NamespaceId) -> Self
Converts to this type from the input type.
Source§impl From<NamespacePublicKey> for NamespaceId
impl From<NamespacePublicKey> for NamespaceId
Source§fn from(value: NamespacePublicKey) -> Self
fn from(value: NamespacePublicKey) -> Self
Converts to this type from the input type.
Source§impl From<NamespaceSecret> for NamespaceId
impl From<NamespaceSecret> for NamespaceId
Source§fn from(value: NamespaceSecret) -> Self
fn from(value: NamespaceSecret) -> Self
Converts to this type from the input type.
Source§impl FromStr for NamespaceId
impl FromStr for NamespaceId
Source§impl Hash for NamespaceId
impl Hash for NamespaceId
Source§impl Ord for NamespaceId
impl Ord for NamespaceId
Source§fn cmp(&self, other: &NamespaceId) -> Ordering
fn cmp(&self, other: &NamespaceId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NamespaceId
impl PartialEq for NamespaceId
Source§impl PartialOrd for NamespaceId
impl PartialOrd for NamespaceId
Source§impl Serialize for NamespaceId
impl Serialize for NamespaceId
Source§impl TryFrom<NamespaceId> for NamespacePublicKey
impl TryFrom<NamespaceId> for NamespacePublicKey
impl Copy for NamespaceId
impl Eq for NamespaceId
impl StructuralPartialEq for NamespaceId
Auto Trait Implementations§
impl Freeze for NamespaceId
impl RefUnwindSafe for NamespaceId
impl Send for NamespaceId
impl Sync for NamespaceId
impl Unpin for NamespaceId
impl UnwindSafe for NamespaceId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)