Struct google_cloudkms1::EncryptRequest [−][src]
pub struct EncryptRequest { pub plaintext: Option<String>, pub additional_authenticated_data: Option<String>, }
Request message for KeyManagementService.Encrypt.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields
plaintext: Option<String>
Required. The data to encrypt. Must be no larger than 64KiB.
The maximum size depends on the key version's protection_level. For SOFTWARE keys, the plaintext must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional_authenticated_data fields must be no larger than 8KiB.
additional_authenticated_data: Option<String>
Optional data that, if specified, must also be provided during decryption through DecryptRequest.additional_authenticated_data.
The maximum size depends on the key version's protection_level. For SOFTWARE keys, the AAD must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional_authenticated_data fields must be no larger than 8KiB.
Trait Implementations
impl Default for EncryptRequest
[src]
impl Default for EncryptRequest
fn default() -> EncryptRequest
[src]
fn default() -> EncryptRequest
Returns the "default value" for a type. Read more
impl Clone for EncryptRequest
[src]
impl Clone for EncryptRequest
fn clone(&self) -> EncryptRequest
[src]
fn clone(&self) -> EncryptRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for EncryptRequest
[src]
impl Debug for EncryptRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for EncryptRequest
[src]
impl RequestValue for EncryptRequest
Auto Trait Implementations
impl Send for EncryptRequest
impl Send for EncryptRequest
impl Sync for EncryptRequest
impl Sync for EncryptRequest