pub struct ClaudeTranslator { /* private fields */ }Implementations§
Source§impl ClaudeTranslator
impl ClaudeTranslator
pub fn new(config: &AIServiceConfig) -> Self
Trait Implementations§
Source§impl AiService for ClaudeTranslator
impl AiService for ClaudeTranslator
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 ClaudeTranslator
impl RefUnwindSafe for ClaudeTranslator
impl Send for ClaudeTranslator
impl Sync for ClaudeTranslator
impl Unpin for ClaudeTranslator
impl UnsafeUnpin for ClaudeTranslator
impl UnwindSafe for ClaudeTranslator
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