pub struct Decrypt {
pub ciphertext: Option<String>,
pub display_id: Option<String>,
pub encryption_context: Option<HashMap<String, String>>,
pub item_id: Option<i64>,
pub json: Option<bool>,
pub key_name: String,
pub output_format: Option<String>,
pub token: Option<String>,
pub uid_token: Option<String>,
pub version: Option<i32>,
}Expand description
Decrypt : decrypt is a command that decrypts ciphertext into plaintext by using an AES key.
Fields§
§ciphertext: Option<String>Ciphertext to be decrypted in base64 encoded format
display_id: Option<String>The display id of the key to use in the decryption process
encryption_context: Option<HashMap<String, String>>The encryption context. If this was specified in the encrypt command, it must be specified here or the decryption operation will fail
item_id: Option<i64>The item id of the key to use in the decryption process
json: Option<bool>Set output format to JSON
key_name: StringThe name of the key to use in the decryption process
output_format: Option<String>If specified, the output will be formatted accordingly. options: [base64]
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
version: Option<i32>key version (relevant only for classic key)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decrypt
impl<'de> Deserialize<'de> for Decrypt
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Decrypt
Auto Trait Implementations§
impl Freeze for Decrypt
impl RefUnwindSafe for Decrypt
impl Send for Decrypt
impl Sync for Decrypt
impl Unpin for Decrypt
impl UnsafeUnpin for Decrypt
impl UnwindSafe for Decrypt
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
Mutably borrows from an owned value. Read more