Struct matrix_sdk_crypto::olm::IdentityKeys
source · [−]pub struct IdentityKeys {
pub ed25519: Ed25519PublicKey,
pub curve25519: Curve25519PublicKey,
}
Expand description
Struct holding the two public identity keys of an Account
.
Fields
ed25519: Ed25519PublicKey
The ed25519 key, used for signing.
curve25519: Curve25519PublicKey
The curve25519 key, used for to establish shared secrets.
Trait Implementations
sourceimpl Clone for IdentityKeys
impl Clone for IdentityKeys
sourcefn clone(&self) -> IdentityKeys
fn clone(&self) -> IdentityKeys
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IdentityKeys
impl Debug for IdentityKeys
sourceimpl<'de> Deserialize<'de> for IdentityKeys
impl<'de> Deserialize<'de> for IdentityKeys
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<IdentityKeys, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<IdentityKeys, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<IdentityKeys> for IdentityKeys
impl PartialEq<IdentityKeys> for IdentityKeys
sourcefn eq(&self, other: &IdentityKeys) -> bool
fn eq(&self, other: &IdentityKeys) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IdentityKeys) -> bool
fn ne(&self, other: &IdentityKeys) -> bool
This method tests for !=
.
sourceimpl Serialize for IdentityKeys
impl Serialize for IdentityKeys
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for IdentityKeys
impl Eq for IdentityKeys
impl StructuralEq for IdentityKeys
impl StructuralPartialEq for IdentityKeys
Auto Trait Implementations
impl RefUnwindSafe for IdentityKeys
impl Send for IdentityKeys
impl Sync for IdentityKeys
impl Unpin for IdentityKeys
impl UnwindSafe for IdentityKeys
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more