pub enum TrustLevel {
L0,
L1,
L2,
L3,
L4,
}Expand description
Trust levels for IDProva agent identities.
Higher levels require more verification and provide stronger guarantees.
Variants§
L0
Self-declared identity. No verification. Any agent can claim L0.
L1
Domain-verified. DNS TXT record proves domain ownership.
L2
Organization-verified. CA-like verification of the controlling organization.
L3
Audited. Third-party security audit of the agent and its environment.
L4
Continuously monitored. Real-time behavior analysis and compliance checking.
Implementations§
Source§impl TrustLevel
impl TrustLevel
Sourcepub fn from_str_repr(s: &str) -> Option<Self>
pub fn from_str_repr(s: &str) -> Option<Self>
Parse from string (e.g., “L0”, “L1”, “L2”, “L3”, “L4”).
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Human-readable description of the trust level.
Sourcepub fn meets_minimum(&self, required: TrustLevel) -> bool
pub fn meets_minimum(&self, required: TrustLevel) -> bool
Check if this trust level meets a minimum requirement.
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
Returns a duplicate 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 TrustLevel
impl Debug for TrustLevel
Source§impl<'de> Deserialize<'de> for TrustLevel
impl<'de> Deserialize<'de> for TrustLevel
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
Source§impl Display for TrustLevel
impl Display for TrustLevel
Source§impl Ord for TrustLevel
impl Ord for TrustLevel
Source§fn cmp(&self, other: &TrustLevel) -> Ordering
fn cmp(&self, other: &TrustLevel) -> 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 TrustLevel
impl PartialEq for TrustLevel
Source§impl PartialOrd for TrustLevel
impl PartialOrd for TrustLevel
Source§impl Serialize for TrustLevel
impl Serialize for TrustLevel
impl Copy for TrustLevel
impl Eq for TrustLevel
impl StructuralPartialEq for TrustLevel
Auto Trait Implementations§
impl Freeze for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnsafeUnpin for TrustLevel
impl UnwindSafe for TrustLevel
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