pub enum PostureLevel {
Open,
Authenticated,
Confidential,
}Expand description
The named trust level derived from a Posture (ADR-020 §1).
A graduated ladder; each rung is a superset of the last, so the derived
ordering (Open < Authenticated < Confidential) answers “at least this
level”. Neutral, standard security vocabulary (STACK-0001 K2).
Variants§
Open
No identity — plaintext, anonymous (freshness only).
Authenticated
A cryptographic identity is present — signed / mTLS, authenticated-as-CN.
Confidential
Authenticated plus group-key confidentiality (the future rung).
Implementations§
Source§impl PostureLevel
impl PostureLevel
Sourcepub const fn as_wire(self) -> &'static str
pub const fn as_wire(self) -> &'static str
The stable wire string (snake_case) used in mDNS TXT stamping and the
published wire contract (ADR-020 §8/§9). The inverse of from_wire.
Sourcepub fn from_wire(s: &str) -> Option<Self>
pub fn from_wire(s: &str) -> Option<Self>
Parse a wire string back into a level (the inverse of as_wire).
Returns None for any unrecognized token.
Sourcepub const fn to_posture(self) -> Posture
pub const fn to_posture(self) -> Posture
The Posture booleans this level implies — the inverse of
Posture::level.
Trait Implementations§
Source§impl Clone for PostureLevel
impl Clone for PostureLevel
Source§fn clone(&self) -> PostureLevel
fn clone(&self) -> PostureLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for PostureLevel
impl ComposeSchema for PostureLevel
impl Copy for PostureLevel
Source§impl Debug for PostureLevel
impl Debug for PostureLevel
Source§impl<'de> Deserialize<'de> for PostureLevel
impl<'de> Deserialize<'de> for PostureLevel
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>,
impl Eq for PostureLevel
Source§impl From<Posture> for PostureLevel
impl From<Posture> for PostureLevel
Source§impl Hash for PostureLevel
impl Hash for PostureLevel
Source§impl Ord for PostureLevel
impl Ord for PostureLevel
Source§fn cmp(&self, other: &PostureLevel) -> Ordering
fn cmp(&self, other: &PostureLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PostureLevel
impl PartialEq for PostureLevel
Source§fn eq(&self, other: &PostureLevel) -> bool
fn eq(&self, other: &PostureLevel) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PostureLevel
impl PartialOrd for PostureLevel
Source§impl Serialize for PostureLevel
impl Serialize for PostureLevel
impl StructuralPartialEq for PostureLevel
Auto Trait Implementations§
impl Freeze for PostureLevel
impl RefUnwindSafe for PostureLevel
impl Send for PostureLevel
impl Sync for PostureLevel
impl Unpin for PostureLevel
impl UnsafeUnpin for PostureLevel
impl UnwindSafe for PostureLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.