pub struct SecretConfig {
pub from: String,
pub hosts: Vec<String>,
pub value: Option<String>,
}Expand description
A secret that the proxy injects into HTTP requests.
Fields§
§from: StringHost environment variable to read the real value from.
hosts: Vec<String>Domain patterns where this secret may be sent (e.g., “api.openai.com”). The proxy only substitutes the placeholder on requests to these hosts.
value: Option<String>If set, use this value directly instead of reading from the host env var.
Trait Implementations§
Source§impl Clone for SecretConfig
impl Clone for SecretConfig
Source§fn clone(&self) -> SecretConfig
fn clone(&self) -> SecretConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SecretConfig
impl RefUnwindSafe for SecretConfig
impl Send for SecretConfig
impl Sync for SecretConfig
impl Unpin for SecretConfig
impl UnsafeUnpin for SecretConfig
impl UnwindSafe for SecretConfig
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