#[non_exhaustive]pub struct FetchContext {
pub key_name: String,
}Expand description
Information given to a KeyFetch implementation when it is asked to
produce a key.
The struct is #[non_exhaustive] — additional fields (a tracing span, a
caller identifier, telemetry hooks) will be added in later phases without
requiring a major version bump.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key_name: StringLogical name of the key being requested.
Fetchers that talk to a named store (keychain entries, environment variables, file paths) use this to disambiguate which key to load. It does not carry any policy meaning to the vault itself.
Implementations§
Trait Implementations§
Source§impl Clone for FetchContext
impl Clone for FetchContext
Source§fn clone(&self) -> FetchContext
fn clone(&self) -> FetchContext
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 FetchContext
impl RefUnwindSafe for FetchContext
impl Send for FetchContext
impl Sync for FetchContext
impl Unpin for FetchContext
impl UnsafeUnpin for FetchContext
impl UnwindSafe for FetchContext
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