Check if an identity exists in the store.
(&self, id: &IdentityId)
| 664 | |
| 665 | /// Check if an identity exists in the store. |
| 666 | pub fn exists(&self, id: &IdentityId) -> bool { |
| 667 | self.find_identity_dir(id).is_ok() |
| 668 | } |
| 669 | |
| 670 | /// Check if an identity with the given name exists. |
| 671 | pub fn exists_by_name(&self, name: &str) -> bool { |