pub struct EncryptedSecret {
pub id: String,
pub version: u8,
pub workspace: String,
pub type_name: String,
pub key: EncryptedKey,
pub value: EncryptedValue,
pub comment: Option<EncryptedComment>,
pub audit: Audit,
}
Fields§
§id: String
§version: u8
§workspace: String
§type_name: String
§key: EncryptedKey
§value: EncryptedValue
§comment: Option<EncryptedComment>
§audit: Audit
Implementations§
Source§impl EncryptedSecret
impl EncryptedSecret
pub fn decrypt( secret: &EncryptedSecret, private_key: &str, ) -> Result<DecryptedSecret>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EncryptedSecret
impl<'de> Deserialize<'de> for EncryptedSecret
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
Auto Trait Implementations§
impl Freeze for EncryptedSecret
impl RefUnwindSafe for EncryptedSecret
impl Send for EncryptedSecret
impl Sync for EncryptedSecret
impl Unpin for EncryptedSecret
impl UnwindSafe for EncryptedSecret
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