Struct olm_rs::account::IdentityKeys[][src]

pub struct IdentityKeys { /* fields omitted */ }

Struct representing the parsed result of OlmAccount::identity_keys().

Implementations

impl IdentityKeys[src]

pub fn ed25519(&self) -> &str[src]

Get the public part of the ed25519 key of the account.

pub fn curve25519(&self) -> &str[src]

Get the public part of the curve25519 key of the account.

pub fn get(&self, key_type: &str) -> Option<&str>[src]

Get a reference to the key of the given key type.

pub fn values(&self) -> Values<'_, String, String>[src]

An iterator visiting all public keys of the account.

pub fn keys(&self) -> Keys<'_, String, String>[src]

An iterator visiting all key types of the account.

pub fn iter(&self) -> Iter<'_, String, String>[src]

An iterator visiting all key-type, key pairs of the account.

pub fn contains_key(&self, key_type: &str) -> bool[src]

Returns true if the account contains a key with the given key type.

Trait Implementations

impl Debug for IdentityKeys[src]

impl<'de> Deserialize<'de> for IdentityKeys[src]

impl PartialEq<IdentityKeys> for IdentityKeys[src]

impl StructuralPartialEq for IdentityKeys[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.