pub struct StaticSecretProvider { /* private fields */ }Available on crate feature
multi-tenant only.Expand description
Implementations§
Source§impl StaticSecretProvider
impl StaticSecretProvider
Trait Implementations§
Source§impl Clone for StaticSecretProvider
impl Clone for StaticSecretProvider
Source§fn clone(&self) -> StaticSecretProvider
fn clone(&self) -> StaticSecretProvider
Returns a duplicate 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 Debug for StaticSecretProvider
impl Debug for StaticSecretProvider
Source§impl Default for StaticSecretProvider
impl Default for StaticSecretProvider
Source§fn default() -> StaticSecretProvider
fn default() -> StaticSecretProvider
Returns the “default value” for a type. Read more
Source§impl SecretProvider for StaticSecretProvider
impl SecretProvider for StaticSecretProvider
Source§fn get_secret(
&self,
tenant: &TenantId,
key: &str,
) -> Result<Option<String>, ServerError>
fn get_secret( &self, tenant: &TenantId, key: &str, ) -> Result<Option<String>, ServerError>
Fetches secret for tenant and key.
Auto Trait Implementations§
impl Freeze for StaticSecretProvider
impl RefUnwindSafe for StaticSecretProvider
impl Send for StaticSecretProvider
impl Sync for StaticSecretProvider
impl Unpin for StaticSecretProvider
impl UnsafeUnpin for StaticSecretProvider
impl UnwindSafe for StaticSecretProvider
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