pub struct Auth {
pub anthropic_key: Option<String>,
pub openai_key: Option<String>,
}Expand description
BYOK credentials for one request, extracted from headers with env-var fallback.
Never logged or persisted — std::fmt::Debug redacts both fields.
Fields§
§anthropic_key: Option<String>Anthropic API key (x-api-key header, or ANTHROPIC_API_KEY).
openai_key: Option<String>OpenAI API key (authorization: Bearer ... header, or OPENAI_API_KEY).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnsafeUnpin for Auth
impl UnwindSafe for Auth
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