pub struct CopilotTranslator { /* private fields */ }Implementations§
Source§impl CopilotTranslator
impl CopilotTranslator
pub fn new(client: CopilotClient, model: String) -> Self
Trait Implementations§
Source§impl AiService for CopilotTranslator
impl AiService for CopilotTranslator
fn chat<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
system_prompt: &'life1 str,
user_content: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn translate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
text: &'life1 str,
direction: &'life2 TranslateDirection,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for CopilotTranslator
impl !RefUnwindSafe for CopilotTranslator
impl Send for CopilotTranslator
impl Sync for CopilotTranslator
impl Unpin for CopilotTranslator
impl UnsafeUnpin for CopilotTranslator
impl !UnwindSafe for CopilotTranslator
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