#[non_exhaustive]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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: BytesThe secret data. Must be no larger than 64KiB.
data_crc32c: Option<i64>Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the 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
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 more