pub enum ApiKeyPolicy {
Present,
MissingAllowed,
Missing,
}Expand description
Whether the upstream vLLM API key requirement is met (MYTH-05).
Variants§
Present
TALAHON_VLLM_API_KEY is set (non-blank) in .env.
MissingAllowed
No key, but the operator opted out (TALAHON_VLLM_ALLOW_NO_API_KEY=true).
Missing
No key and no opt-out: the gateway must not start.
Trait Implementations§
Source§impl Clone for ApiKeyPolicy
impl Clone for ApiKeyPolicy
impl Copy for ApiKeyPolicy
Source§impl Debug for ApiKeyPolicy
impl Debug for ApiKeyPolicy
impl Eq for ApiKeyPolicy
Source§impl PartialEq for ApiKeyPolicy
impl PartialEq for ApiKeyPolicy
impl StructuralPartialEq for ApiKeyPolicy
Auto Trait Implementations§
impl Forget for ApiKeyPolicy
impl Freeze for ApiKeyPolicy
impl Move for ApiKeyPolicy
impl RefUnwindSafe for ApiKeyPolicy
impl Send for ApiKeyPolicy
impl Sync for ApiKeyPolicy
impl Unpin for ApiKeyPolicy
impl UnsafeUnpin for ApiKeyPolicy
impl UnwindSafe for ApiKeyPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.