pub struct LoadedCredential {
pub inject_mode: InjectMode,
pub raw_credential: Zeroizing<String>,
pub header_name: String,
pub header_value: Zeroizing<String>,
pub path_pattern: Option<String>,
pub path_replacement: Option<String>,
pub query_param_name: Option<String>,
}Expand description
A loaded credential ready for injection.
Contains only credential-specific fields (injection mode, header name/value,
raw secret). Route-level configuration (upstream URL, L7 endpoint rules,
custom TLS CA) is stored in crate::route::LoadedRoute.
Fields§
§inject_mode: InjectModeInjection mode
raw_credential: Zeroizing<String>Raw credential value from keystore (for modes that need it directly)
header_name: StringHeader name to inject (e.g., “Authorization”)
header_value: Zeroizing<String>Formatted header value (e.g., “Bearer sk-…”)
path_pattern: Option<String>Pattern to match in incoming path (with {} placeholder)
path_replacement: Option<String>Pattern for outgoing path (with {} placeholder)
query_param_name: Option<String>Query parameter name
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadedCredential
impl RefUnwindSafe for LoadedCredential
impl Send for LoadedCredential
impl Sync for LoadedCredential
impl Unpin for LoadedCredential
impl UnsafeUnpin for LoadedCredential
impl UnwindSafe for LoadedCredential
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