pub struct IdentityKeys { /* private fields */ }Expand description
Struct representing the parsed result of OlmAccount::identity_keys().
Implementations§
Source§impl IdentityKeys
impl IdentityKeys
Sourcepub fn curve25519(&self) -> &str
pub fn curve25519(&self) -> &str
Get the public part of the curve25519 key of the account.
Sourcepub fn get(&self, key_type: &str) -> Option<&str>
pub fn get(&self, key_type: &str) -> Option<&str>
Get a reference to the key of the given key type.
Sourcepub fn values(&self) -> Values<'_, String, String>
pub fn values(&self) -> Values<'_, String, String>
An iterator visiting all public keys of the account.
Sourcepub fn keys(&self) -> Keys<'_, String, String>
pub fn keys(&self) -> Keys<'_, String, String>
An iterator visiting all key types of the account.
Sourcepub fn iter(&self) -> Iter<'_, String, String>
pub fn iter(&self) -> Iter<'_, String, String>
An iterator visiting all key-type, key pairs of the account.
Sourcepub fn contains_key(&self, key_type: &str) -> bool
pub fn contains_key(&self, key_type: &str) -> bool
Returns true if the account contains a key with the given key type.
Trait Implementations§
Source§impl Debug for IdentityKeys
impl Debug for IdentityKeys
Source§impl<'de> Deserialize<'de> for IdentityKeys
impl<'de> Deserialize<'de> for IdentityKeys
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IdentityKeys
impl PartialEq for IdentityKeys
impl StructuralPartialEq for IdentityKeys
Auto Trait Implementations§
impl Freeze for IdentityKeys
impl RefUnwindSafe for IdentityKeys
impl Send for IdentityKeys
impl Sync for IdentityKeys
impl Unpin for IdentityKeys
impl UnwindSafe for IdentityKeys
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more