pub enum AttestationProblem {
Missing {
target: String,
holders: usize,
fingerprint: String,
},
WrongSubject {
target: String,
adding: String,
attested_for: String,
attested: String,
},
NotTheTargetsKey {
target: String,
signer: String,
},
NotVerified(EventProblem),
}Expand description
Why an attestation was refused. Every arm names a different cause, so an admin reading the refusal knows which of the four things to fix.
Variants§
Missing
Required and not supplied.
Fields
WrongSubject
The attestation is about a different principal or a different key than the request adds.
Fields
NotTheTargetsKey
The attesting key is not one the target holds.
Fields
NotVerified(EventProblem)
The signature does not verify, or was made under another namespace.
Trait Implementations§
Source§impl Clone for AttestationProblem
impl Clone for AttestationProblem
Source§impl Debug for AttestationProblem
impl Debug for AttestationProblem
Source§impl Display for AttestationProblem
impl Display for AttestationProblem
impl Eq for AttestationProblem
Source§impl Error for AttestationProblem
impl Error for AttestationProblem
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 AttestationProblem
impl PartialEq for AttestationProblem
impl StructuralPartialEq for AttestationProblem
Auto Trait Implementations§
impl Freeze for AttestationProblem
impl RefUnwindSafe for AttestationProblem
impl Send for AttestationProblem
impl Sync for AttestationProblem
impl Unpin for AttestationProblem
impl UnsafeUnpin for AttestationProblem
impl UnwindSafe for AttestationProblem
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.