pub struct TestPrefix { /* private fields */ }Implementations§
Source§impl TestPrefix
impl TestPrefix
pub fn from_env(provider: &str) -> Self
Sourcepub fn key(&self, suffix: &str) -> String
pub fn key(&self, suffix: &str) -> String
Derive a unique secret key for a test case.
Uses - rather than / between segments so keys are valid as
SecretUri name components without further provider-side sanitization.
Sourcepub fn to_metadata(&self) -> Value
pub fn to_metadata(&self) -> Value
Minimal JSON metadata used in debugging output.
Trait Implementations§
Source§impl Clone for TestPrefix
impl Clone for TestPrefix
Source§fn clone(&self) -> TestPrefix
fn clone(&self) -> TestPrefix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TestPrefix
impl RefUnwindSafe for TestPrefix
impl Send for TestPrefix
impl Sync for TestPrefix
impl Unpin for TestPrefix
impl UnsafeUnpin for TestPrefix
impl UnwindSafe for TestPrefix
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