pub struct TagVerification {
pub signature: SignatureVerdict,
pub tree_sha256: Option<TreeSha256Verdict>,
pub missing_submodules: Vec<MissingSubmodule>,
}Expand description
Combined signature and tree-sha256 verification outcome.
Fields§
§signature: SignatureVerdictOpenPGP / SSH signature result.
tree_sha256: Option<TreeSha256Verdict>Present when the tag object carries a tree-sha256 header.
missing_submodules: Vec<MissingSubmodule>Submodule paths that blocked digest recomputation (tag had a tree-sha256 claim).
Implementations§
Source§impl TagVerification
impl TagVerification
Sourcepub fn is_ok(&self) -> bool
pub fn is_ok(&self) -> bool
True when the signature is good or was not checked, and any claimed digest
matches a recomputation with no bogus tree-sha256-excluded paths.
Excluded submodules listed in the tag are reported in TreeSha256Verdict::excluded
but do not fail verification.
Trait Implementations§
Source§impl Clone for TagVerification
impl Clone for TagVerification
Source§impl Debug for TagVerification
impl Debug for TagVerification
impl Eq for TagVerification
Source§impl PartialEq for TagVerification
impl PartialEq for TagVerification
impl StructuralPartialEq for TagVerification
Auto Trait Implementations§
impl Freeze for TagVerification
impl RefUnwindSafe for TagVerification
impl Send for TagVerification
impl Sync for TagVerification
impl Unpin for TagVerification
impl UnsafeUnpin for TagVerification
impl UnwindSafe for TagVerification
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