Struct matrix_sdk_crypto::types::SignedKey
source · pub struct SignedKey { /* private fields */ }
Expand description
A key for the SignedCurve25519 algorithm
Implementations§
source§impl SignedKey
impl SignedKey
sourcepub fn new(key: Curve25519PublicKey) -> Self
pub fn new(key: Curve25519PublicKey) -> Self
Creates a new SignedKey
with the given key and signatures.
sourcepub fn new_fallback(key: Curve25519PublicKey) -> Self
pub fn new_fallback(key: Curve25519PublicKey) -> Self
Creates a new SignedKey
, that represents a fallback key, with the
given key and signatures.
sourcepub fn key(&self) -> Curve25519PublicKey
pub fn key(&self) -> Curve25519PublicKey
Base64-encoded 32-byte Curve25519 public key.
sourcepub fn signatures(&self) -> &Signatures
pub fn signatures(&self) -> &Signatures
Signatures for the key object.
sourcepub fn signatures_mut(&mut self) -> &mut Signatures
pub fn signatures_mut(&mut self) -> &mut Signatures
Signatures for the key object as a mutable borrow.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SignedKey
impl<'de> Deserialize<'de> for SignedKey
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 PartialEq for SignedKey
impl PartialEq for SignedKey
impl Eq for SignedKey
impl StructuralPartialEq for SignedKey
Auto Trait Implementations§
impl Freeze for SignedKey
impl RefUnwindSafe for SignedKey
impl Send for SignedKey
impl Sync for SignedKey
impl Unpin for SignedKey
impl UnwindSafe for SignedKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more