Struct olm_rs::account::OneTimeKeys [−][src]
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<OneTimeKeys> for OneTimeKeys[src]
fn eq(&self, other: &OneTimeKeys) -> bool[src]
fn ne(&self, other: &OneTimeKeys) -> bool[src]
impl StructuralPartialEq for OneTimeKeys[src]
Auto Trait Implementations
impl RefUnwindSafe for OneTimeKeys[src]
impl Send for OneTimeKeys[src]
impl Sync for OneTimeKeys[src]
impl Unpin for OneTimeKeys[src]
impl UnwindSafe for OneTimeKeys[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,