pub struct InjectedRequest {
pub body: String,
pub headers: Vec<(String, String)>,
pub resolved_refs: Vec<String>,
pub resolved_values: Vec<SecretString>,
}Expand description
Result of injecting credentials into a request.
Manual Debug implementation redacts the body and headers fields to prevent accidental credential exposure through logging.
Fields§
§body: StringThe rewritten request body with credential references substituted.
headers: Vec<(String, String)>Rewritten headers (name, value) with credential references substituted.
resolved_refs: Vec<String>Which credential references were resolved during injection.
resolved_values: Vec<SecretString>The actual resolved secret values for response scrubbing.
Stored as SecretString so they are zeroized on drop and never
accidentally exposed through Debug or Display.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InjectedRequest
impl RefUnwindSafe for InjectedRequest
impl Send for InjectedRequest
impl Sync for InjectedRequest
impl Unpin for InjectedRequest
impl UnsafeUnpin for InjectedRequest
impl UnwindSafe for InjectedRequest
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