pub struct AttestationOccurrence {
pub jwts: Option<Vec<Jwt>>,
pub serialized_payload: Option<String>,
pub signatures: Option<Vec<Signature>>,
}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.
This type is not used in any activity, and only used as part of another schema.
Fields
jwts: Option<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.
serialized_payload: Option<String>Required. The serialized payload that is verified by one or more signatures.
signatures: Option<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.
Trait Implementations
sourceimpl Clone for AttestationOccurrence
impl Clone for AttestationOccurrence
sourcefn clone(&self) -> AttestationOccurrence
fn clone(&self) -> AttestationOccurrence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AttestationOccurrence
impl Debug for AttestationOccurrence
sourceimpl Default for AttestationOccurrence
impl Default for AttestationOccurrence
sourcefn default() -> AttestationOccurrence
fn default() -> AttestationOccurrence
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AttestationOccurrence
impl<'de> Deserialize<'de> for AttestationOccurrence
sourcefn 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
sourceimpl Serialize for AttestationOccurrence
impl Serialize for AttestationOccurrence
impl Part for AttestationOccurrence
Auto Trait Implementations
impl RefUnwindSafe for AttestationOccurrence
impl Send for AttestationOccurrence
impl Sync for AttestationOccurrence
impl Unpin for AttestationOccurrence
impl UnwindSafe for AttestationOccurrence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more