pub struct VaultEntry { /* private fields */ }Expand description
One resolved vault entry: the provider secret to inject and the model egress policy.
Implementations§
Source§impl VaultEntry
impl VaultEntry
Sourcepub fn provider_key(&self) -> &str
pub fn provider_key(&self) -> &str
The real provider secret to inject upstream. Not exposed beyond the proxy boundary.
Sourcepub fn model_allowed(&self, model: Option<&str>) -> bool
pub fn model_allowed(&self, model: Option<&str>) -> bool
Whether model is permitted for this key. An empty allowlist permits any model; a non-empty
one permits only listed models (fail-closed for everything else, including None — a request
whose model cannot be parsed is denied when an allowlist is set).
Auto Trait Implementations§
impl Freeze for VaultEntry
impl RefUnwindSafe for VaultEntry
impl Send for VaultEntry
impl Sync for VaultEntry
impl Unpin for VaultEntry
impl UnsafeUnpin for VaultEntry
impl UnwindSafe for VaultEntry
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