pub struct EncryptGpg {
pub display_id: Option<String>,
pub input_format: Option<String>,
pub item_id: Option<i64>,
pub json: Option<bool>,
pub key_name: String,
pub plaintext: 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
input_format: Option<String>If specified, the plaintext input is assumed to be formatted accordingly. Current supported options: [base64]
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
plaintext: StringData to be encrypted
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 EncryptGpg
impl EncryptGpg
pub fn new(key_name: String, plaintext: String) -> EncryptGpg
Trait Implementations§
Source§impl Clone for EncryptGpg
impl Clone for EncryptGpg
Source§fn clone(&self) -> EncryptGpg
fn clone(&self) -> EncryptGpg
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 EncryptGpg
impl Debug for EncryptGpg
Source§impl Default for EncryptGpg
impl Default for EncryptGpg
Source§fn default() -> EncryptGpg
fn default() -> EncryptGpg
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EncryptGpg
impl<'de> Deserialize<'de> for EncryptGpg
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 EncryptGpg
impl PartialEq for EncryptGpg
Source§fn eq(&self, other: &EncryptGpg) -> bool
fn eq(&self, other: &EncryptGpg) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EncryptGpg
impl Serialize for EncryptGpg
impl StructuralPartialEq for EncryptGpg
Auto Trait Implementations§
impl Freeze for EncryptGpg
impl RefUnwindSafe for EncryptGpg
impl Send for EncryptGpg
impl Sync for EncryptGpg
impl Unpin for EncryptGpg
impl UnsafeUnpin for EncryptGpg
impl UnwindSafe for EncryptGpg
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