pub struct DecryptFile {
pub cyphertext_header: Option<String>,
pub display_id: Option<String>,
pub in: String,
pub item_id: Option<i64>,
pub json: Option<bool>,
pub key_name: String,
pub out: Option<String>,
pub token: Option<String>,
pub uid_token: Option<String>,
pub version: Option<i32>,
}Fields§
§cyphertext_header: Option<String>§display_id: Option<String>The display id of the key to use in the decryption process
in: StringPath to the file to be decrypted. If not provided, the content will be taken from stdin
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
out: Option<String>Path to the output file. If not provided, the output will be sent to stdout
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§
Source§impl DecryptFile
impl DecryptFile
pub fn new(in: String, key_name: String) -> DecryptFile
Trait Implementations§
Source§impl Clone for DecryptFile
impl Clone for DecryptFile
Source§fn clone(&self) -> DecryptFile
fn clone(&self) -> DecryptFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecryptFile
impl Debug for DecryptFile
Source§impl Default for DecryptFile
impl Default for DecryptFile
Source§fn default() -> DecryptFile
fn default() -> DecryptFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecryptFile
impl<'de> Deserialize<'de> for DecryptFile
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
Source§impl PartialEq for DecryptFile
impl PartialEq for DecryptFile
Source§fn eq(&self, other: &DecryptFile) -> bool
fn eq(&self, other: &DecryptFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DecryptFile
impl Serialize for DecryptFile
impl StructuralPartialEq for DecryptFile
Auto Trait Implementations§
impl Freeze for DecryptFile
impl RefUnwindSafe for DecryptFile
impl Send for DecryptFile
impl Sync for DecryptFile
impl Unpin for DecryptFile
impl UnsafeUnpin for DecryptFile
impl UnwindSafe for DecryptFile
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