pub struct CopilotProvider { /* private fields */ }Expand description
Provider capable of listing and instantiating Copilot models.
Implementations§
Trait Implementations§
Source§impl Clone for CopilotProvider
impl Clone for CopilotProvider
Source§fn clone(&self) -> CopilotProvider
fn clone(&self) -> CopilotProvider
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 CopilotProvider
impl Debug for CopilotProvider
Source§impl LanguageModelProvider for CopilotProvider
impl LanguageModelProvider for CopilotProvider
Source§type Error = CopilotError
type Error = CopilotError
The error type returned by this provider.
Source§fn list_models(
&self,
) -> impl Future<Output = Result<Vec<ModelProfile>, Self::Error>> + Send
fn list_models( &self, ) -> impl Future<Output = Result<Vec<ModelProfile>, Self::Error>> + Send
Lists all available models from this provider.
Source§fn get_model(
&self,
name: &str,
) -> impl Future<Output = Result<Self::Model, Self::Error>> + Send
fn get_model( &self, name: &str, ) -> impl Future<Output = Result<Self::Model, Self::Error>> + Send
Gets a specific model by name from this provider.
Source§fn profile() -> ProviderProfile
fn profile() -> ProviderProfile
Returns the provider’s profile information.
Auto Trait Implementations§
impl Freeze for CopilotProvider
impl RefUnwindSafe for CopilotProvider
impl Send for CopilotProvider
impl Sync for CopilotProvider
impl Unpin for CopilotProvider
impl UnsafeUnpin for CopilotProvider
impl UnwindSafe for CopilotProvider
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