pub struct MockProvider { /* private fields */ }Expand description
Deterministic provider for tests: maps a reference string to a value and counts how many times each reference was materialized (to prove dedup).
Implementations§
Trait Implementations§
Source§impl Default for MockProvider
impl Default for MockProvider
Source§fn default() -> MockProvider
fn default() -> MockProvider
Returns the “default value” for a type. Read more
Source§impl SecretProvider for MockProvider
impl SecretProvider for MockProvider
Source§fn materialize(&self, reference: &str) -> Result<SecretValue, CoreError>
fn materialize(&self, reference: &str) -> Result<SecretValue, CoreError>
Fetch the value for a reference URI (e.g.
azure-kv://corp-kv/db-url).Source§fn scheme(&self) -> &'static str
fn scheme(&self) -> &'static str
The URI scheme this provider handles (
"azure-kv", "aws-sm", …),
without the ://. The SchemeRouter dispatches on it.Auto Trait Implementations§
impl !Freeze for MockProvider
impl RefUnwindSafe for MockProvider
impl Send for MockProvider
impl Sync for MockProvider
impl Unpin for MockProvider
impl UnsafeUnpin for MockProvider
impl UnwindSafe for MockProvider
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