Struct gapi_grpc::grafeas::v1beta1::attestation::GenericSignedAttestation[][src]

pub struct GenericSignedAttestation {
    pub content_type: i32,
    pub serialized_payload: Vec<u8>,
    pub signatures: Vec<Signature>,
}

An attestation wrapper that uses the Grafeas Signature message. This attestation must define the serialized_payload that the signatures verify and any metadata necessary to interpret that plaintext. The signatures should always be over the serialized_payload bytestring.

Fields

content_type: i32

Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).

serialized_payload: Vec<u8>

The serialized payload that is verified by one or more signatures. The encoding and semantic meaning of this payload must match what is set in content_type.

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.

Implementations

impl GenericSignedAttestation[src]

pub fn content_type(&self) -> ContentType[src]

Returns the enum value of content_type, or the default if the field is set to an invalid enum value.

pub fn set_content_type(&mut self, value: ContentType)[src]

Sets content_type to the provided enum value.

Trait Implementations

impl Clone for GenericSignedAttestation[src]

impl Debug for GenericSignedAttestation[src]

impl Default for GenericSignedAttestation[src]

impl Message for GenericSignedAttestation[src]

impl PartialEq<GenericSignedAttestation> for GenericSignedAttestation[src]

impl StructuralPartialEq for GenericSignedAttestation[src]

Auto Trait Implementations

impl RefUnwindSafe for GenericSignedAttestation

impl Send for GenericSignedAttestation

impl Sync for GenericSignedAttestation

impl Unpin for GenericSignedAttestation

impl UnwindSafe for GenericSignedAttestation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]