Struct olm_rs::account::IdentityKeys [−][src]
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<IdentityKeys> for IdentityKeys[src]
fn eq(&self, other: &IdentityKeys) -> bool[src]
fn ne(&self, other: &IdentityKeys) -> bool[src]
impl StructuralPartialEq for IdentityKeys[src]
Auto Trait Implementations
impl RefUnwindSafe for IdentityKeys[src]
impl Send for IdentityKeys[src]
impl Sync for IdentityKeys[src]
impl Unpin for IdentityKeys[src]
impl UnwindSafe for IdentityKeys[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>,