Enum crev_lib::VerificationStatus
source · pub enum VerificationStatus {
Negative,
Insufficient,
Verified,
Local,
}
Expand description
Result of verification
Not named Result
to avoid confusion with Result
type.
Variants§
Negative
That’s bad!
Insufficient
VerificationRequirements set too high
Verified
Okay
Local
This is your package, trust yourself.
Implementations§
source§impl VerificationStatus
impl VerificationStatus
sourcepub fn is_verified(self) -> bool
pub fn is_verified(self) -> bool
Is it VerificationStatus::Verified
?
Trait Implementations§
source§impl Clone for VerificationStatus
impl Clone for VerificationStatus
source§fn clone(&self) -> VerificationStatus
fn clone(&self) -> VerificationStatus
Returns a copy of the value. Read more
1.0.0 · 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 VerificationStatus
impl Debug for VerificationStatus
source§impl Display for VerificationStatus
impl Display for VerificationStatus
source§impl Ord for VerificationStatus
impl Ord for VerificationStatus
source§fn cmp(&self, other: &VerificationStatus) -> Ordering
fn cmp(&self, other: &VerificationStatus) -> Ordering
1.21.0 · 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
source§impl PartialEq for VerificationStatus
impl PartialEq for VerificationStatus
source§fn eq(&self, other: &VerificationStatus) -> bool
fn eq(&self, other: &VerificationStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VerificationStatus
impl PartialOrd for VerificationStatus
source§fn partial_cmp(&self, other: &VerificationStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &VerificationStatus) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for VerificationStatus
impl Eq for VerificationStatus
impl StructuralEq for VerificationStatus
impl StructuralPartialEq for VerificationStatus
Auto Trait Implementations§
impl RefUnwindSafe for VerificationStatus
impl Send for VerificationStatus
impl Sync for VerificationStatus
impl Unpin for VerificationStatus
impl UnwindSafe for VerificationStatus
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.