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

AES encrypted secret

AWS KMS encrypted data encryption key

AWS KMS encryption context

AES initialization vector

Trait Implementations

impl Clone for EncryptedSecret
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EncryptedSecret
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for EncryptedSecret
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for EncryptedSecret
[src]

Auto Trait Implementations