pub enum PublishedKey {
RsaPem(String),
Ed25519([u8; 32]),
}Expand description
A key an actor publishes, as a signature is checked against it.
Variants§
RsaPem(String)
A PEM-encoded RSA public key, from publicKey.
Ed25519([u8; 32])
A raw Ed25519 public key, from an assertionMethod Multikey.
Implementations§
Trait Implementations§
Source§impl Clone for PublishedKey
impl Clone for PublishedKey
Source§fn clone(&self) -> PublishedKey
fn clone(&self) -> PublishedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PublishedKey
impl Debug for PublishedKey
impl Eq for PublishedKey
Source§impl PartialEq for PublishedKey
impl PartialEq for PublishedKey
impl StructuralPartialEq for PublishedKey
Auto Trait Implementations§
impl Freeze for PublishedKey
impl RefUnwindSafe for PublishedKey
impl Send for PublishedKey
impl Sync for PublishedKey
impl Unpin for PublishedKey
impl UnsafeUnpin for PublishedKey
impl UnwindSafe for PublishedKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<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.