Struct google_cloudkms1::EncryptRequest
source · pub struct EncryptRequest {
pub plaintext: Option<String>,
pub additional_authenticated_data: Option<String>,
}Expand description
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§
source§impl Clone for EncryptRequest
impl Clone for EncryptRequest
source§fn clone(&self) -> EncryptRequest
fn clone(&self) -> EncryptRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EncryptRequest
impl Debug for EncryptRequest
source§impl Default for EncryptRequest
impl Default for EncryptRequest
source§fn default() -> EncryptRequest
fn default() -> EncryptRequest
source§impl<'de> Deserialize<'de> for EncryptRequest
impl<'de> Deserialize<'de> for EncryptRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for EncryptRequest
impl Serialize for EncryptRequest
impl RequestValue for EncryptRequest
Auto Trait Implementations§
impl Freeze for EncryptRequest
impl RefUnwindSafe for EncryptRequest
impl Send for EncryptRequest
impl Sync for EncryptRequest
impl Unpin for EncryptRequest
impl UnwindSafe for EncryptRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more