Struct aws_kms_crypt::EncryptedSecret
[−]
[src]
pub struct EncryptedSecret { pub EncryptedData: Vec<u8>, pub EncryptedDataKey: Vec<u8>, pub EncryptionContext: HashMap<String, String>, pub Iv: Vec<u8>, }
A struct that holds an encrypted secret.
Examples
Create EncryptedSecret from JSON string
extern crate aws_kms_crypt; extern crate serde_json; let input = r#"{ "EncryptedData": "c2FtcGxlX2RhdGE=", "EncryptedDataKey": "c2FtcGxlX2RhdGFfa2V5", "EncryptionContext": { "entity": "test" }, "Iv": "73616D706C655F6976" }"#; let data: aws_kms_crypt::EncryptedSecret = serde_json::from_str(input).unwrap();
Fields
EncryptedData: Vec<u8>
AES encrypted secret
EncryptedDataKey: Vec<u8>
AWS KMS encrypted data encryption key
EncryptionContext: HashMap<String, String>
AWS KMS encryption context
Iv: Vec<u8>
AES initialization vector
Trait Implementations
impl Clone for EncryptedSecret
[src]
fn clone(&self) -> EncryptedSecret
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EncryptedSecret
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for EncryptedSecret
[src]
fn eq(&self, __arg_0: &EncryptedSecret) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EncryptedSecret) -> bool
[src]
This method tests for !=
.