pub enum OpenAIResolvedAuth {
ApiKey {
api_key: String,
},
ChatGpt {
api_key: String,
handle: OpenAIChatGptAuthHandle,
},
}Expand description
OpenAI auth resolution chosen for the current runtime.
Custom Debug redacts the bearer api_key to prevent credential leakage.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for OpenAIResolvedAuth
impl Clone for OpenAIResolvedAuth
Source§fn clone(&self) -> OpenAIResolvedAuth
fn clone(&self) -> OpenAIResolvedAuth
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for OpenAIResolvedAuth
impl !UnwindSafe for OpenAIResolvedAuth
impl Freeze for OpenAIResolvedAuth
impl Send for OpenAIResolvedAuth
impl Sync for OpenAIResolvedAuth
impl Unpin for OpenAIResolvedAuth
impl UnsafeUnpin for OpenAIResolvedAuth
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