pub enum TrustLevelV1 {
Untrusted,
Unknown,
Internal,
Trusted,
}Expand description
How far the source is trusted, least trusted first.
Variants§
Implementations§
Source§impl TrustLevelV1
impl TrustLevelV1
Sourcepub fn is_external_or_unknown(self) -> bool
pub fn is_external_or_unknown(self) -> bool
Untrusted or unknown: the one test for “handle as untrusted” (Rule U).
Callers use this instead of comparing against Untrusted alone.
Trait Implementations§
Source§impl Clone for TrustLevelV1
impl Clone for TrustLevelV1
impl Copy for TrustLevelV1
Source§impl Debug for TrustLevelV1
impl Debug for TrustLevelV1
Source§impl<'de> Deserialize<'de> for TrustLevelV1
impl<'de> Deserialize<'de> for TrustLevelV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TrustLevelV1
Source§impl Hash for TrustLevelV1
impl Hash for TrustLevelV1
Source§impl Ord for TrustLevelV1
impl Ord for TrustLevelV1
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 TrustLevelV1
impl PartialEq for TrustLevelV1
Source§impl PartialOrd for TrustLevelV1
impl PartialOrd for TrustLevelV1
Source§impl Serialize for TrustLevelV1
impl Serialize for TrustLevelV1
impl StructuralPartialEq for TrustLevelV1
Auto Trait Implementations§
impl Forget for TrustLevelV1
impl Freeze for TrustLevelV1
impl Move for TrustLevelV1
impl RefUnwindSafe for TrustLevelV1
impl Send for TrustLevelV1
impl Sync for TrustLevelV1
impl Unpin for TrustLevelV1
impl UnsafeUnpin for TrustLevelV1
impl UnwindSafe for TrustLevelV1
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