#[non_exhaustive]pub struct KeyOperationAttestation {
pub format: AttestationFormat,
pub content: Bytes,
pub cert_chains: Option<CertificateChains>,
/* private fields */
}Expand description
Contains an HSM-generated attestation about a key operation. For more information, see [Verifying attestations] (https://cloud.google.com/kms/docs/attest-key).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: AttestationFormatOutput only. The format of the attestation data.
content: BytesOutput only. The attestation data provided by the HSM when the key operation was performed.
cert_chains: Option<CertificateChains>Output only. The certificate chains needed to validate the attestation
Implementations§
Source§impl KeyOperationAttestation
impl KeyOperationAttestation
pub fn new() -> Self
Sourcepub fn set_format<T: Into<AttestationFormat>>(self, v: T) -> Self
pub fn set_format<T: Into<AttestationFormat>>(self, v: T) -> Self
Sourcepub fn set_content<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_content<T: Into<Bytes>>(self, v: T) -> Self
Sourcepub fn set_cert_chains<T>(self, v: T) -> Selfwhere
T: Into<CertificateChains>,
pub fn set_cert_chains<T>(self, v: T) -> Selfwhere
T: Into<CertificateChains>,
Sets the value of cert_chains.
§Example
ⓘ
use google_cloud_kms_v1::model::key_operation_attestation::CertificateChains;
let x = KeyOperationAttestation::new().set_cert_chains(CertificateChains::default()/* use setters */);Sourcepub fn set_or_clear_cert_chains<T>(self, v: Option<T>) -> Selfwhere
T: Into<CertificateChains>,
pub fn set_or_clear_cert_chains<T>(self, v: Option<T>) -> Selfwhere
T: Into<CertificateChains>,
Sets or clears the value of cert_chains.
§Example
ⓘ
use google_cloud_kms_v1::model::key_operation_attestation::CertificateChains;
let x = KeyOperationAttestation::new().set_or_clear_cert_chains(Some(CertificateChains::default()/* use setters */));
let x = KeyOperationAttestation::new().set_or_clear_cert_chains(None::<CertificateChains>);Trait Implementations§
Source§impl Clone for KeyOperationAttestation
impl Clone for KeyOperationAttestation
Source§fn clone(&self) -> KeyOperationAttestation
fn clone(&self) -> KeyOperationAttestation
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyOperationAttestation
impl Debug for KeyOperationAttestation
Source§impl Default for KeyOperationAttestation
impl Default for KeyOperationAttestation
Source§fn default() -> KeyOperationAttestation
fn default() -> KeyOperationAttestation
Returns the “default value” for a type. Read more
Source§impl Message for KeyOperationAttestation
impl Message for KeyOperationAttestation
Source§impl PartialEq for KeyOperationAttestation
impl PartialEq for KeyOperationAttestation
impl StructuralPartialEq for KeyOperationAttestation
Auto Trait Implementations§
impl !Freeze for KeyOperationAttestation
impl RefUnwindSafe for KeyOperationAttestation
impl Send for KeyOperationAttestation
impl Sync for KeyOperationAttestation
impl Unpin for KeyOperationAttestation
impl UnsafeUnpin for KeyOperationAttestation
impl UnwindSafe for KeyOperationAttestation
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