pub struct OpenAIAccountAuthService { /* private fields */ }Expand description
Service contract for resolving VT Code’s OpenAI account auth state.
Implementations§
Source§impl OpenAIAccountAuthService
impl OpenAIAccountAuthService
Sourcepub fn resolve_external_session_auth(
&self,
session: OpenAIChatGptSession,
refresher: Arc<dyn OpenAIChatGptSessionRefresher>,
) -> Result<OpenAIResolvedAuth>
pub fn resolve_external_session_auth( &self, session: OpenAIChatGptSession, refresher: Arc<dyn OpenAIChatGptSessionRefresher>, ) -> Result<OpenAIResolvedAuth>
Resolve a non-persistent OpenAI auth session backed by externally managed tokens.
Trait Implementations§
Source§impl Clone for OpenAIAccountAuthService
impl Clone for OpenAIAccountAuthService
Source§fn clone(&self) -> OpenAIAccountAuthService
fn clone(&self) -> OpenAIAccountAuthService
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 Freeze for OpenAIAccountAuthService
impl RefUnwindSafe for OpenAIAccountAuthService
impl Send for OpenAIAccountAuthService
impl Sync for OpenAIAccountAuthService
impl Unpin for OpenAIAccountAuthService
impl UnsafeUnpin for OpenAIAccountAuthService
impl UnwindSafe for OpenAIAccountAuthService
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