Struct google_api_proto::grafeas::v1::AttestationOccurrence
source · pub struct AttestationOccurrence {
pub serialized_payload: Bytes,
pub signatures: Vec<Signature>,
pub jwts: Vec<Jwt>,
}
Expand description
Occurrence that represents a single “attestation”. The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign.
Fields§
§serialized_payload: Bytes
Required. The serialized payload that is verified by one or more
signatures
.
signatures: Vec<Signature>
One or more signatures over serialized_payload
. Verifier implementations
should consider this attestation message verified if at least one
signature
verifies serialized_payload
. See Signature
in common.proto
for more details on signature structure and verification.
jwts: Vec<Jwt>
One or more JWTs encoding a self-contained attestation.
Each JWT encodes the payload that it verifies within the JWT itself.
Verifier implementation SHOULD ignore the serialized_payload
field
when verifying these JWTs.
If only JWTs are present on this AttestationOccurrence, then the
serialized_payload
SHOULD be left empty.
Each JWT SHOULD encode a claim specific to the resource_uri
of this
Occurrence, but this is not validated by Grafeas metadata API
implementations. The JWT itself is opaque to Grafeas.
Trait Implementations§
source§impl Clone for AttestationOccurrence
impl Clone for AttestationOccurrence
source§fn clone(&self) -> AttestationOccurrence
fn clone(&self) -> AttestationOccurrence
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttestationOccurrence
impl Debug for AttestationOccurrence
source§impl Default for AttestationOccurrence
impl Default for AttestationOccurrence
source§impl Message for AttestationOccurrence
impl Message for AttestationOccurrence
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for AttestationOccurrence
impl PartialEq for AttestationOccurrence
source§fn eq(&self, other: &AttestationOccurrence) -> bool
fn eq(&self, other: &AttestationOccurrence) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttestationOccurrence
Auto Trait Implementations§
impl !Freeze for AttestationOccurrence
impl RefUnwindSafe for AttestationOccurrence
impl Send for AttestationOccurrence
impl Sync for AttestationOccurrence
impl Unpin for AttestationOccurrence
impl UnwindSafe for AttestationOccurrence
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request