pub struct CapabilityAttestation {
pub provider_id: String,
pub protocol_selected: ProtocolVersion,
pub features_enabled: BTreeSet<FeatureId>,
pub actions: BTreeMap<ActionName, ActionDefinitionStatic>,
pub lockfile_digest: Hash,
pub attested_at: String,
}Expand description
The runtime attestation result exposed on an open session (spine §4.2
CapabilityAttestation). openSession has already compared it against
the expected lockfileDigest; it is surfaced for Evidence and reports.
Fields§
§provider_id: StringProvider identity.
protocol_selected: ProtocolVersionProtocol version selected by the live handshake.
features_enabled: BTreeSet<FeatureId>Features enabled by the live handshake.
actions: BTreeMap<ActionName, ActionDefinitionStatic>Attested actions, keyed by action name.
lockfile_digest: HashThe lockfile digest the live world was verified against.
attested_at: StringISO timestamp of the attestation.
Implementations§
Source§impl CapabilityAttestation
impl CapabilityAttestation
Sourcepub fn from_lockfile(
lockfile: &CapabilityLockfile,
attested_at: impl Into<String>,
) -> Self
pub fn from_lockfile( lockfile: &CapabilityLockfile, attested_at: impl Into<String>, ) -> Self
Builds the attestation view of a lockfile, as a provider does after a
successful openSession comparison (attested_at is the live
attestation time, not the lock time).
Trait Implementations§
Source§impl Clone for CapabilityAttestation
impl Clone for CapabilityAttestation
Source§fn clone(&self) -> CapabilityAttestation
fn clone(&self) -> CapabilityAttestation
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 CapabilityAttestation
impl Debug for CapabilityAttestation
Source§impl<'de> Deserialize<'de> for CapabilityAttestation
impl<'de> Deserialize<'de> for CapabilityAttestation
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 JsonSchema for CapabilityAttestation
impl JsonSchema for CapabilityAttestation
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CapabilityAttestation
impl PartialEq for CapabilityAttestation
Source§impl Serialize for CapabilityAttestation
impl Serialize for CapabilityAttestation
impl StructuralPartialEq for CapabilityAttestation
Auto Trait Implementations§
impl Freeze for CapabilityAttestation
impl RefUnwindSafe for CapabilityAttestation
impl Send for CapabilityAttestation
impl Sync for CapabilityAttestation
impl Unpin for CapabilityAttestation
impl UnsafeUnpin for CapabilityAttestation
impl UnwindSafe for CapabilityAttestation
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