Skip to main content

ForEachRefSignatureVerification

Trait ForEachRefSignatureVerification 

Source
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§

Source

fn bare_output(&self) -> &[u8]

gpg’s human-readable verification output (the bare %(signature) atom).

Source

fn grade_byte(&self) -> u8

‘G’/‘U’/‘B’/‘E’/‘N’ — git downgrades good-but-untrusted to ‘U’.

Source

fn key(&self) -> &str

Source

fn signer(&self) -> &str

Source

fn fingerprint(&self) -> &str

Source

fn primary_fingerprint(&self) -> &str

Source

fn trust(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§