pub struct EvidencePolicy {
pub require_fresh_evidence: bool,
pub require_revision_match: bool,
pub require_evidence_after_revision: bool,
pub require_expires_at: bool,
pub require_runner_identity: bool,
pub require_command: bool,
pub require_exit_code: bool,
pub require_log_or_artifact_digest: bool,
pub require_environment_digest: bool,
pub max_age_ms: Option<u64>,
pub trusted_runner_identities: Vec<String>,
}Fields§
§require_fresh_evidence: bool§require_revision_match: bool§require_evidence_after_revision: bool§require_expires_at: bool§require_runner_identity: bool§require_command: bool§require_exit_code: bool§require_log_or_artifact_digest: bool§require_environment_digest: bool§max_age_ms: Option<u64>§trusted_runner_identities: Vec<String>Implementations§
Source§impl EvidencePolicy
impl EvidencePolicy
Sourcepub fn max_age_ms(&self) -> u64
pub fn max_age_ms(&self) -> u64
Returns the value of max_age_ms, or the default value if max_age_ms is unset.
Trait Implementations§
Source§impl Clone for EvidencePolicy
impl Clone for EvidencePolicy
Source§fn clone(&self) -> EvidencePolicy
fn clone(&self) -> EvidencePolicy
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 EvidencePolicy
impl Debug for EvidencePolicy
Source§impl Default for EvidencePolicy
impl Default for EvidencePolicy
Source§impl Hash for EvidencePolicy
impl Hash for EvidencePolicy
Source§impl Message for EvidencePolicy
impl Message for EvidencePolicy
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for EvidencePolicy
impl PartialEq for EvidencePolicy
Source§fn eq(&self, other: &EvidencePolicy) -> bool
fn eq(&self, other: &EvidencePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EvidencePolicy
impl StructuralPartialEq for EvidencePolicy
Auto Trait Implementations§
impl Freeze for EvidencePolicy
impl RefUnwindSafe for EvidencePolicy
impl Send for EvidencePolicy
impl Sync for EvidencePolicy
impl Unpin for EvidencePolicy
impl UnsafeUnpin for EvidencePolicy
impl UnwindSafe for EvidencePolicy
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