pub struct MockVoid;
Expand description
Mock client for testing that returns empty responses (legacy)
Trait Implementations§
Source§impl LowLevelClient for MockVoid
impl LowLevelClient for MockVoid
Source§fn ask_raw<'life0, 'async_trait>(
&'life0 self,
_prompt: String,
) -> Pin<Box<dyn Future<Output = Result<String, AIError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ask_raw<'life0, 'async_trait>(
&'life0 self,
_prompt: String,
) -> Pin<Box<dyn Future<Output = Result<String, AIError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The only method that implementations must provide
Source§fn clone_box(&self) -> Box<dyn LowLevelClient>
fn clone_box(&self) -> Box<dyn LowLevelClient>
Clone this client into a boxed trait object
Auto Trait Implementations§
impl Freeze for MockVoid
impl RefUnwindSafe for MockVoid
impl Send for MockVoid
impl Sync for MockVoid
impl Unpin for MockVoid
impl UnwindSafe for MockVoid
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