pub struct DecryptGpg {
pub ciphertext: String,
pub display_id: Option<String>,
pub input_format: Option<String>,
pub item_id: Option<i64>,
pub json: Option<bool>,
pub key_name: String,
pub output_format: Option<String>,
pub passphrase: Option<String>,
pub token: Option<String>,
pub uid_token: Option<String>,
}Fields§
§ciphertext: StringCiphertext to be decrypted
display_id: Option<String>The display id of the key to use in the decryption process
input_format: Option<String>Select default assumed format for the ciphertext. Currently supported options: [base64,raw]
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]
passphrase: Option<String>Passphrase that was used to generate the key
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 DecryptGpg
impl DecryptGpg
pub fn new(ciphertext: String, key_name: String) -> DecryptGpg
Trait Implementations§
Source§impl Clone for DecryptGpg
impl Clone for DecryptGpg
Source§fn clone(&self) -> DecryptGpg
fn clone(&self) -> DecryptGpg
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 DecryptGpg
impl Debug for DecryptGpg
Source§impl Default for DecryptGpg
impl Default for DecryptGpg
Source§fn default() -> DecryptGpg
fn default() -> DecryptGpg
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecryptGpg
impl<'de> Deserialize<'de> for DecryptGpg
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 DecryptGpg
impl PartialEq for DecryptGpg
Source§fn eq(&self, other: &DecryptGpg) -> bool
fn eq(&self, other: &DecryptGpg) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DecryptGpg
impl Serialize for DecryptGpg
impl StructuralPartialEq for DecryptGpg
Auto Trait Implementations§
impl Freeze for DecryptGpg
impl RefUnwindSafe for DecryptGpg
impl Send for DecryptGpg
impl Sync for DecryptGpg
impl Unpin for DecryptGpg
impl UnsafeUnpin for DecryptGpg
impl UnwindSafe for DecryptGpg
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