pub enum ConformanceLevel {
L0,
L1,
L2,
}Expand description
OAS conformance levels as defined in OAS Specification §10.
- L0: Basic Identity — valid document, signature, and kind
- L1: Accountable Identity — L0 + valid lineage to human root
- L2: Full Identity — L1 + immutable ledger anchoring + third-party attestation
§Examples
use oas_document::conformance::ConformanceLevel;
use std::str::FromStr;
let level = ConformanceLevel::from_str("L1").unwrap();
assert!(level >= ConformanceLevel::L0);Variants§
L0
Level 0 — Basic Identity (OAS Spec §10.1).
L1
Level 1 — Accountable Identity (OAS Spec §10.2).
L2
Level 2 — Full Identity (OAS Spec §10.3).
Implementations§
Trait Implementations§
Source§impl Clone for ConformanceLevel
impl Clone for ConformanceLevel
impl Copy for ConformanceLevel
Source§impl Debug for ConformanceLevel
impl Debug for ConformanceLevel
Source§impl<'de> Deserialize<'de> for ConformanceLevel
impl<'de> Deserialize<'de> for ConformanceLevel
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 ConformanceLevel
impl Display for ConformanceLevel
impl Eq for ConformanceLevel
Source§impl FromStr for ConformanceLevel
impl FromStr for ConformanceLevel
Source§impl Hash for ConformanceLevel
impl Hash for ConformanceLevel
Source§impl Ord for ConformanceLevel
impl Ord for ConformanceLevel
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 ConformanceLevel
impl PartialEq for ConformanceLevel
Source§impl PartialOrd for ConformanceLevel
impl PartialOrd for ConformanceLevel
Source§impl Serialize for ConformanceLevel
impl Serialize for ConformanceLevel
impl StructuralPartialEq for ConformanceLevel
Auto Trait Implementations§
impl Freeze for ConformanceLevel
impl RefUnwindSafe for ConformanceLevel
impl Send for ConformanceLevel
impl Sync for ConformanceLevel
impl Unpin for ConformanceLevel
impl UnsafeUnpin for ConformanceLevel
impl UnwindSafe for ConformanceLevel
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