pub struct HashicorpVaultClient { /* private fields */ }Implementations§
Source§impl HashicorpVaultClient
impl HashicorpVaultClient
pub fn new(base_url: &str, token: &str) -> Self
pub fn new_with_client(base_url: &str, token: &str, client: Client) -> Self
pub async fn store_secret( &self, id: &str, secret: Vec<u8>, key_type: KeyType, ) -> Result<(), Error>
pub async fn list_secrets(&self) -> Result<Vec<String>, Error>
pub async fn get_secret( &self, id: &str, key_type: KeyType, ) -> Result<Option<Vec<u8>>, Error>
pub async fn delete_secret(&self, id: &str) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for HashicorpVaultClient
impl !RefUnwindSafe for HashicorpVaultClient
impl Send for HashicorpVaultClient
impl Sync for HashicorpVaultClient
impl Unpin for HashicorpVaultClient
impl !UnwindSafe for HashicorpVaultClient
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