pub struct GenericSignedAttestation {
pub content_type: Option<String>,
pub serialized_payload: Option<Vec<u8>>,
pub signatures: Option<Vec<Signature>>,
}
Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§content_type: Option<String>
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: Option<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: 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§
Source§impl Clone for GenericSignedAttestation
impl Clone for GenericSignedAttestation
Source§fn clone(&self) -> GenericSignedAttestation
fn clone(&self) -> GenericSignedAttestation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GenericSignedAttestation
impl Debug for GenericSignedAttestation
Source§impl Default for GenericSignedAttestation
impl Default for GenericSignedAttestation
Source§fn default() -> GenericSignedAttestation
fn default() -> GenericSignedAttestation
Source§impl<'de> Deserialize<'de> for GenericSignedAttestation
impl<'de> Deserialize<'de> for GenericSignedAttestation
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>,
Source§impl Serialize for GenericSignedAttestation
impl Serialize for GenericSignedAttestation
impl Part for GenericSignedAttestation
Auto Trait Implementations§
impl Freeze for GenericSignedAttestation
impl RefUnwindSafe for GenericSignedAttestation
impl Send for GenericSignedAttestation
impl Sync for GenericSignedAttestation
impl Unpin for GenericSignedAttestation
impl UnwindSafe for GenericSignedAttestation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more