Struct google_api_proto::google::cloud::secretmanager::v1beta2::SecretPayload
source · pub struct SecretPayload {
pub data: Bytes,
pub data_crc32c: Option<i64>,
}
Expand description
A secret payload resource in the Secret Manager API. This contains the sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].
Fields§
§data: Bytes
The secret data. Must be no larger than 64KiB.
data_crc32c: Option<i64>
Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1beta2.SecretManagerService] will verify the integrity of the received [data][google.cloud.secretmanager.v1beta2.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion] calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion] responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion] request, the [SecretManagerService][google.cloud.secretmanager.v1beta2.SecretManagerService] will generate and store one for you.
The CRC32C value is encoded as a Int64 for compatibility, and can be safely downconverted to uint32 in languages that support this type. https://cloud.google.com/apis/design/design_patterns#integer_types
Implementations§
source§impl SecretPayload
impl SecretPayload
sourcepub fn data_crc32c(&self) -> i64
pub fn data_crc32c(&self) -> i64
Returns the value of data_crc32c
, or the default value if data_crc32c
is unset.
Trait Implementations§
source§impl Clone for SecretPayload
impl Clone for SecretPayload
source§fn clone(&self) -> SecretPayload
fn clone(&self) -> SecretPayload
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecretPayload
impl Debug for SecretPayload
source§impl Default for SecretPayload
impl Default for SecretPayload
source§impl Message for SecretPayload
impl Message for SecretPayload
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 SecretPayload
impl PartialEq for SecretPayload
source§fn eq(&self, other: &SecretPayload) -> bool
fn eq(&self, other: &SecretPayload) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecretPayload
Auto Trait Implementations§
impl !Freeze for SecretPayload
impl RefUnwindSafe for SecretPayload
impl Send for SecretPayload
impl Sync for SecretPayload
impl Unpin for SecretPayload
impl UnwindSafe for SecretPayload
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