Check if an identity exists in the store.
(&self, id: &IdentityId)
| 751 | |
| 752 | /// Check if an identity exists in the store. |
| 753 | pub fn exists(&self, id: &IdentityId) -> bool { |
| 754 | self.find_identity_dir(id).is_ok() |
| 755 | } |
| 756 | |
| 757 | /// Check if an identity with the given name exists. |
| 758 | pub fn exists_by_name(&self, name: &str) -> bool { |