signatory/key/info.rs
1//! Information about a key in a keystore
2
3use crate::{Algorithm, KeyName};
4
5/// Information/metadata about a particular key.
6#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
7pub struct KeyInfo {
8 /// Name of the key.
9 pub name: KeyName,
10
11 /// Algorithm of this key (if recognized).
12 pub algorithm: Option<Algorithm>,
13
14 /// Is this key encrypted (i.e. under a password)?
15 pub encrypted: bool,
16}