pub enum ApiKeySource {
Flag,
Settings,
Generated,
None,
}Expand description
Where the proxy’s bearer token came from.
Carried alongside the resolved value so the startup banner can explain the
decision rather than merely stating it — the same (value, source) shape
resolve_context_size_with_source
uses.
Variants§
Flag
Supplied on the command line or through GGLIB_API_KEY.
Settings
Read from the stored proxy_api_key setting.
Generated
Minted by this run because the bind was not loopback and nothing else supplied one. Printed once, then persisted to settings.
None
No token configured; the endpoint is unauthenticated.
Trait Implementations§
Source§impl Clone for ApiKeySource
impl Clone for ApiKeySource
Source§fn clone(&self) -> ApiKeySource
fn clone(&self) -> ApiKeySource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiKeySource
impl Debug for ApiKeySource
Source§impl Default for ApiKeySource
impl Default for ApiKeySource
Source§fn default() -> ApiKeySource
fn default() -> ApiKeySource
Returns the “default value” for a type. Read more
Source§impl PartialEq for ApiKeySource
impl PartialEq for ApiKeySource
Source§fn eq(&self, other: &ApiKeySource) -> bool
fn eq(&self, other: &ApiKeySource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApiKeySource
impl Eq for ApiKeySource
impl StructuralPartialEq for ApiKeySource
Auto Trait Implementations§
impl Freeze for ApiKeySource
impl RefUnwindSafe for ApiKeySource
impl Send for ApiKeySource
impl Sync for ApiKeySource
impl Unpin for ApiKeySource
impl UnsafeUnpin for ApiKeySource
impl UnwindSafe for ApiKeySource
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