pub enum AuthorityClass {
Untrusted,
Derived,
Observed,
Verified,
Operator,
}Expand description
Authority class of the evidence supporting a claim.
Variants§
Untrusted
Source may be observed but must not influence durable authority.
Derived
Derived artifact such as a summary or reflection candidate.
Observed
Audit-visible observed source with local influence only.
Verified
Operator-approved source for bounded automation.
Operator
Human root of trust or policy-equivalent authority for this deployment.
Implementations§
Source§impl AuthorityClass
impl AuthorityClass
Sourcepub const fn claim_ceiling(self) -> ClaimCeiling
pub const fn claim_ceiling(self) -> ClaimCeiling
Highest claim ceiling this authority class can support.
Sourcepub fn weakest<I>(classes: I) -> Option<Self>where
I: IntoIterator<Item = Self>,
pub fn weakest<I>(classes: I) -> Option<Self>where
I: IntoIterator<Item = Self>,
Weakest authority class from an iterator.
Trait Implementations§
Source§impl Clone for AuthorityClass
impl Clone for AuthorityClass
Source§fn clone(&self) -> AuthorityClass
fn clone(&self) -> AuthorityClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthorityClass
impl Debug for AuthorityClass
Source§impl<'de> Deserialize<'de> for AuthorityClass
impl<'de> Deserialize<'de> for AuthorityClass
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 Hash for AuthorityClass
impl Hash for AuthorityClass
Source§impl JsonSchema for AuthorityClass
impl JsonSchema for AuthorityClass
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for AuthorityClass
impl Ord for AuthorityClass
Source§fn cmp(&self, other: &AuthorityClass) -> Ordering
fn cmp(&self, other: &AuthorityClass) -> Ordering
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
Source§impl PartialEq for AuthorityClass
impl PartialEq for AuthorityClass
Source§fn eq(&self, other: &AuthorityClass) -> bool
fn eq(&self, other: &AuthorityClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AuthorityClass
impl PartialOrd for AuthorityClass
Source§impl Serialize for AuthorityClass
impl Serialize for AuthorityClass
impl Copy for AuthorityClass
impl Eq for AuthorityClass
impl StructuralPartialEq for AuthorityClass
Auto Trait Implementations§
impl Freeze for AuthorityClass
impl RefUnwindSafe for AuthorityClass
impl Send for AuthorityClass
impl Sync for AuthorityClass
impl Unpin for AuthorityClass
impl UnsafeUnpin for AuthorityClass
impl UnwindSafe for AuthorityClass
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