pub struct Entry {
pub principals: Vec<String>,
pub namespaces: Option<Vec<String>>,
pub cert_authority: bool,
pub public_key: PublicKey,
}Expand description
A single principal-to-key mapping parsed from an allowed_signers file.
Fields§
§principals: Vec<String>Fnmatch-style patterns separated by commas in the source file.
Each pattern may be prefixed with ! for negation, as in OpenSSH’s
Match block syntax.
namespaces: Option<Vec<String>>Comma-separated list of namespaces the key is authorized to sign under,
parsed from a namespaces="..." option.
None means “any namespace is accepted” (the default per OpenSSH).
Whether the entry is marked as a certificate authority (cert-authority).
public_key: PublicKeyThe public key in OpenSSH wire form.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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