pub trait ForEachRefSignatureVerification {
// Required methods
fn bare_output(&self) -> &[u8] ⓘ;
fn grade_byte(&self) -> u8;
fn key(&self) -> &str;
fn signer(&self) -> &str;
fn fingerprint(&self) -> &str;
fn primary_fingerprint(&self) -> &str;
fn trust(&self) -> &str;
}Expand description
The signature facts the %(signature[:opt]) atom family renders, mirroring
git’s grab_signature field access. The concrete verifier stays a CLI
adapter (GPG/SSH subprocess plumbing); this trait is the sink boundary.
Required Methods§
Sourcefn bare_output(&self) -> &[u8] ⓘ
fn bare_output(&self) -> &[u8] ⓘ
gpg’s human-readable verification output (the bare %(signature) atom).
Sourcefn grade_byte(&self) -> u8
fn grade_byte(&self) -> u8
‘G’/‘U’/‘B’/‘E’/‘N’ — git downgrades good-but-untrusted to ‘U’.
fn key(&self) -> &str
fn signer(&self) -> &str
fn fingerprint(&self) -> &str
fn primary_fingerprint(&self) -> &str
fn trust(&self) -> &str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".