pub struct EncryptFile {
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>,
}Fields§
§display_id: Option<String>The display id of the key to use in the encryption process
in: StringPath to the file to be encrypted. If not provided, the content will be taken from stdin
item_id: Option<i64>The item id of the key to use in the encryption process
json: Option<bool>Set output format to JSON
key_name: StringThe name of the key to use in the encryption 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
Implementations§
Source§impl EncryptFile
impl EncryptFile
pub fn new(in: String, key_name: String) -> EncryptFile
Trait Implementations§
Source§impl Clone for EncryptFile
impl Clone for EncryptFile
Source§fn clone(&self) -> EncryptFile
fn clone(&self) -> EncryptFile
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 EncryptFile
impl Debug for EncryptFile
Source§impl Default for EncryptFile
impl Default for EncryptFile
Source§fn default() -> EncryptFile
fn default() -> EncryptFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncryptFile
impl<'de> Deserialize<'de> for EncryptFile
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 EncryptFile
impl PartialEq for EncryptFile
Source§fn eq(&self, other: &EncryptFile) -> bool
fn eq(&self, other: &EncryptFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EncryptFile
impl Serialize for EncryptFile
impl StructuralPartialEq for EncryptFile
Auto Trait Implementations§
impl Freeze for EncryptFile
impl RefUnwindSafe for EncryptFile
impl Send for EncryptFile
impl Sync for EncryptFile
impl Unpin for EncryptFile
impl UnsafeUnpin for EncryptFile
impl UnwindSafe for EncryptFile
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