pub enum VerifyOutcome {
Ok,
Unsigned,
Missing,
BadSignature,
UntrustedSigner,
Mismatch,
Malformed,
ToolMissing,
}Expand description
What attest verify found for one task object.
Variants§
Ok
Every line parses, every signature verifies against the trust input, and every statement agrees with the commit.
Unsigned
The statements hold but are not signed.
Missing
No speccoder attestation on the object.
BadSignature
A signature does not verify.
UntrustedSigner
A signature verifies, but its key is not trusted by the verifier.
Mismatch
A statement disagrees with the commit, its trailers, the spec or the bundle.
Malformed
A line does not parse.
ToolMissing
The signature’s tool (ssh-keygen, gpg, cosign) cannot run:
nothing can be said about it.
Implementations§
Trait Implementations§
Source§impl Clone for VerifyOutcome
impl Clone for VerifyOutcome
impl Copy for VerifyOutcome
Source§impl Debug for VerifyOutcome
impl Debug for VerifyOutcome
impl Eq for VerifyOutcome
Source§impl JsonSchema for VerifyOutcome
impl JsonSchema for VerifyOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for VerifyOutcome
impl Ord for VerifyOutcome
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VerifyOutcome
impl PartialEq for VerifyOutcome
Source§impl PartialOrd for VerifyOutcome
impl PartialOrd for VerifyOutcome
Source§impl Serialize for VerifyOutcome
impl Serialize for VerifyOutcome
impl StructuralPartialEq for VerifyOutcome
Auto Trait Implementations§
impl Freeze for VerifyOutcome
impl RefUnwindSafe for VerifyOutcome
impl Send for VerifyOutcome
impl Sync for VerifyOutcome
impl Unpin for VerifyOutcome
impl UnsafeUnpin for VerifyOutcome
impl UnwindSafe for VerifyOutcome
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