pub struct SecretStore { /* private fields */ }Implementations§
Source§impl SecretStore
impl SecretStore
pub fn new() -> Self
pub fn create( &self, name: impl Into<String>, value: SecretValue, scope: HttpConnectPolicy, ) -> Result<SecretMetadata>
pub fn get(&self, id: SecretId) -> Result<Option<SecretMetadata>>
pub fn list(&self) -> Result<Vec<SecretMetadata>>
pub fn rotate(&self, id: SecretId, value: SecretValue) -> Result<SecretMetadata>
pub fn update_scope( &self, id: SecretId, scope: HttpConnectPolicy, ) -> Result<SecretMetadata>
pub fn delete(&self, id: SecretId) -> Result<bool>
pub fn validate_bindings( &self, bindings: &BTreeMap<String, SecretId>, policy: &HttpConnectPolicy, ) -> Result<()>
Trait Implementations§
Source§impl Clone for SecretStore
impl Clone for SecretStore
Source§impl Debug for SecretStore
impl Debug for SecretStore
Auto Trait Implementations§
impl Forget for SecretStore
impl Freeze for SecretStore
impl Move for SecretStore
impl RefUnwindSafe for SecretStore
impl Send for SecretStore
impl Sync for SecretStore
impl Unpin for SecretStore
impl UnsafeUnpin for SecretStore
impl UnwindSafe for SecretStore
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