pub struct AttestationConfig {
pub enabled: bool,
pub interval_secs: u64,
pub pcrs: String,
}Expand description
Device attestation settings.
With a TPM signer, the agent quotes the TPM’s PCRs over a PhyCloud
nonce at start and every interval_secs, and each event references the
latest quote; without one, the block is marked mode: software.
Fields§
§enabled: boolAdd device_attestation to each event’s provenance.
interval_secs: u64Seconds between TPM quotes.
pcrs: StringPCR selection to quote, e.g. sha256:0,1,2,3,4,5,6,7.
Trait Implementations§
Source§impl Clone for AttestationConfig
impl Clone for AttestationConfig
Source§impl Debug for AttestationConfig
impl Debug for AttestationConfig
Source§impl Default for AttestationConfig
impl Default for AttestationConfig
Source§impl<'de> Deserialize<'de> for AttestationConfig
impl<'de> Deserialize<'de> for AttestationConfig
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
impl Eq for AttestationConfig
Source§impl PartialEq for AttestationConfig
impl PartialEq for AttestationConfig
Source§impl Serialize for AttestationConfig
impl Serialize for AttestationConfig
impl StructuralPartialEq for AttestationConfig
Auto Trait Implementations§
impl Freeze for AttestationConfig
impl RefUnwindSafe for AttestationConfig
impl Send for AttestationConfig
impl Sync for AttestationConfig
impl Unpin for AttestationConfig
impl UnsafeUnpin for AttestationConfig
impl UnwindSafe for AttestationConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.