Check if an identity exists in the store.
(&self, id: &IdentityId)
| 656 | |
| 657 | /// Check if an identity exists in the store. |
| 658 | pub fn exists(&self, id: &IdentityId) -> bool { |
| 659 | self.find_identity_dir(id).is_ok() |
| 660 | } |
| 661 | |
| 662 | /// Check if an identity with the given name exists. |
| 663 | pub fn exists_by_name(&self, name: &str) -> bool { |