pub enum TrustedRootParseError {
Malformed {
reason: String,
},
WrongMediaType {
observed: String,
},
EmptyTlogs,
MissingBaseUrl {
tlog_index: usize,
},
MissingValidityStart {
tlog_index: usize,
},
}Expand description
Errors produced while parsing a trusted_root.json payload.
Variants§
Malformed
Bytes did not parse as JSON in the Sigstore trust-root shape.
WrongMediaType
mediaType did not start with the Sigstore trust-root prefix.
EmptyTlogs
Trust root declared zero Rekor tlogs.
MissingBaseUrl
Trust root declared a tlog with no Rekor baseUrl.
MissingValidityStart
Trust root declared a tlog with no validFor.start timestamp.
Trait Implementations§
Source§impl Clone for TrustedRootParseError
impl Clone for TrustedRootParseError
Source§fn clone(&self) -> TrustedRootParseError
fn clone(&self) -> TrustedRootParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustedRootParseError
impl Debug for TrustedRootParseError
Source§impl Display for TrustedRootParseError
impl Display for TrustedRootParseError
Source§impl Error for TrustedRootParseError
impl Error for TrustedRootParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TrustedRootParseError
impl PartialEq for TrustedRootParseError
Source§fn eq(&self, other: &TrustedRootParseError) -> bool
fn eq(&self, other: &TrustedRootParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TrustedRootParseError
impl StructuralPartialEq for TrustedRootParseError
Auto Trait Implementations§
impl Freeze for TrustedRootParseError
impl RefUnwindSafe for TrustedRootParseError
impl Send for TrustedRootParseError
impl Sync for TrustedRootParseError
impl Unpin for TrustedRootParseError
impl UnsafeUnpin for TrustedRootParseError
impl UnwindSafe for TrustedRootParseError
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