pub struct AuthorId(/* private fields */);Expand description
AuthorPublicKey in bytes
Implementations§
Source§impl AuthorId
 
impl AuthorId
Sourcepub fn public_key<S: PublicKeyStore>(
    &self,
    store: &S,
) -> Result<AuthorPublicKey, SignatureError>
 
pub fn public_key<S: PublicKeyStore>( &self, store: &S, ) -> Result<AuthorPublicKey, SignatureError>
Convert into AuthorPublicKey by fetching from a PublicKeyStore.
Fails if the bytes of this AuthorId are not a valid [ed25519_dalek] curve point.
Sourcepub fn into_public_key(&self) -> Result<AuthorPublicKey, SignatureError>
 
pub fn into_public_key(&self) -> Result<AuthorPublicKey, SignatureError>
Convert into AuthorPublicKey.
Fails if the bytes of this AuthorId are not a valid [ed25519_dalek] curve point.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthorId
 
impl<'de> Deserialize<'de> for AuthorId
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 From<&AuthorPublicKey> for AuthorId
 
impl From<&AuthorPublicKey> for AuthorId
Source§fn from(value: &AuthorPublicKey) -> Self
 
fn from(value: &AuthorPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<AuthorId> for AuthorFilter
 
impl From<AuthorId> for AuthorFilter
Source§impl From<AuthorPublicKey> for AuthorId
 
impl From<AuthorPublicKey> for AuthorId
Source§fn from(value: AuthorPublicKey) -> Self
 
fn from(value: AuthorPublicKey) -> Self
Converts to this type from the input type.
Source§impl Ord for AuthorId
 
impl Ord for AuthorId
Source§impl PartialOrd for AuthorId
 
impl PartialOrd for AuthorId
Source§impl TryFrom<AuthorId> for AuthorPublicKey
 
impl TryFrom<AuthorId> for AuthorPublicKey
impl Copy for AuthorId
impl Eq for AuthorId
impl StructuralPartialEq for AuthorId
Auto Trait Implementations§
impl Freeze for AuthorId
impl RefUnwindSafe for AuthorId
impl Send for AuthorId
impl Sync for AuthorId
impl Unpin for AuthorId
impl UnwindSafe for AuthorId
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)