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: Ed25519PublicKeyThe ed25519 key, used for signing.
curve25519: Curve25519PublicKeyThe 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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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.