pub struct TrustworthinessVector {
pub instance_identity: i8,
pub configuration: i8,
pub executables: i8,
pub file_system: i8,
pub hardware: i8,
pub runtime_opaque: i8,
pub storage_opaque: i8,
pub sourced_data: i8,
}Expand description
AR4SI trustworthiness vector — maps from WritersLogic evidence components.
Each component is a tier value from -128 to 127:
- 2 = affirming, 32 = warning, 96 = contraindicated, 0 = none
Fields§
§instance_identity: i8Hardware attestation tier (TPM/Secure Enclave)
configuration: i8Software configuration integrity
executables: i8Binary attestation (TPM quote)
file_system: i8Document hash chain integrity (H1/H2/H3)
hardware: i8TPM/Secure Enclave tier
runtime_opaque: i8VDF proof strength
storage_opaque: i8Key hierarchy integrity
sourced_data: i8Behavioral entropy + jitter
Implementations§
Source§impl TrustworthinessVector
impl TrustworthinessVector
Sourcepub fn min_component(&self) -> i8
pub fn min_component(&self) -> i8
Returns the minimum component value (weakest link).
Sourcepub fn overall_status(&self) -> Ar4siStatus
pub fn overall_status(&self) -> Ar4siStatus
Derive overall AR4SI status from the weakest component.
Sourcepub fn header_string(&self) -> String
pub fn header_string(&self) -> String
Format as compact header string: “II=2 CO=2 EX=0 FS=2 HW=2 RO=2 SO=2 SD=2”
Sourcepub fn parse_header(s: &str) -> Option<Self>
pub fn parse_header(s: &str) -> Option<Self>
Parse from header string format.
Trait Implementations§
Source§impl Clone for TrustworthinessVector
impl Clone for TrustworthinessVector
Source§fn clone(&self) -> TrustworthinessVector
fn clone(&self) -> TrustworthinessVector
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 TrustworthinessVector
impl Debug for TrustworthinessVector
Source§impl Default for TrustworthinessVector
impl Default for TrustworthinessVector
Source§fn default() -> TrustworthinessVector
fn default() -> TrustworthinessVector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrustworthinessVector
impl<'de> Deserialize<'de> for TrustworthinessVector
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 PartialEq for TrustworthinessVector
impl PartialEq for TrustworthinessVector
Source§impl Serialize for TrustworthinessVector
impl Serialize for TrustworthinessVector
impl Eq for TrustworthinessVector
impl StructuralPartialEq for TrustworthinessVector
Auto Trait Implementations§
impl Freeze for TrustworthinessVector
impl RefUnwindSafe for TrustworthinessVector
impl Send for TrustworthinessVector
impl Sync for TrustworthinessVector
impl Unpin for TrustworthinessVector
impl UnsafeUnpin for TrustworthinessVector
impl UnwindSafe for TrustworthinessVector
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