Struct olm_rs::account::OneTimeKeys[][src]

pub struct OneTimeKeys { /* fields omitted */ }

Struct representing the the one-time keys. The keys can be accessed in a map-like fashion.

Implementations

impl OneTimeKeys[src]

pub fn curve25519(&self) -> &HashMap<String, String>[src]

Get the HashMap containing the curve25519 one-time keys. This is the same as using get("curve25519").unwrap()

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

Get a reference to the hashmap corresponding to given key type.

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

An iterator visiting all one-time key hashmaps in an arbitrary order.

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

An iterator visiting all one-time key types in an arbitrary order.

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

An iterator visiting all one-time key types and their respective key hashmaps in an arbitrary order.

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

Returns true if the struct contains the given key type. This does not mean that there are any keys for the given key type.

Trait Implementations

impl Debug for OneTimeKeys[src]

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

impl PartialEq<OneTimeKeys> for OneTimeKeys[src]

impl StructuralPartialEq for OneTimeKeys[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.