Struct chamber_core::secrets::EncryptedSecret
source · pub struct EncryptedSecret {
pub key: String,
pub ciphertext: Vec<u8>,
/* private fields */
}Fields§
§key: String§ciphertext: Vec<u8>Implementations§
source§impl EncryptedSecret
impl EncryptedSecret
pub fn new(cipher_key: Key<Aes256Gcm>, key: String, val: String) -> Self
pub fn nonce(&self) -> GenericArray<u8, U12>
pub fn nonce_as_u8(&self) -> Vec<u8> ⓘ
pub fn add_tag(self, string: &str)
pub fn remove_tag(self, tag: &str)
pub fn access_level(&self) -> i32
pub fn set_access_level(&mut self, level: Option<i32>)
pub fn role_whitelist(self) -> Vec<String>
pub fn set_role_whitelist(&mut self, whitelist: Option<Vec<String>>)
pub fn add_role_to_whitelist(&mut self, role: String)
pub fn remove_role_from_whitelist(&mut self, role: String)
Trait Implementations§
source§impl Clone for EncryptedSecret
impl Clone for EncryptedSecret
source§fn clone(&self) -> EncryptedSecret
fn clone(&self) -> EncryptedSecret
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a, R: Row> FromRow<'a, R> for EncryptedSecret
impl<'a, R: Row> FromRow<'a, R> for EncryptedSecret
Auto Trait Implementations§
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