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 EncryptRequestfn default() -> EncryptRequest[src]
fn default() -> EncryptRequestReturns the "default value" for a type. Read more
impl Clone for EncryptRequest[src]
impl Clone for EncryptRequestfn clone(&self) -> EncryptRequest[src]
fn clone(&self) -> EncryptRequestReturns 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 EncryptRequestfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl RequestValue for EncryptRequest[src]
impl RequestValue for EncryptRequestAuto Trait Implementations
impl Send for EncryptRequest
impl Send for EncryptRequestimpl Sync for EncryptRequest
impl Sync for EncryptRequest