pub struct TextSynthClient { /* private fields */ }Expand description
TextSynth API Client
Implementations§
Source§impl TextSynthClient
impl TextSynthClient
Sourcepub async fn completions(
&self,
engine: &Engine,
request: &Request,
) -> Result<impl Stream<Item = Result<ResponseChunk, Error>>, Error>
pub async fn completions( &self, engine: &Engine, request: &Request, ) -> Result<impl Stream<Item = Result<ResponseChunk, Error>>, Error>
Perform a completion request
Auto Trait Implementations§
impl Freeze for TextSynthClient
impl !RefUnwindSafe for TextSynthClient
impl Send for TextSynthClient
impl Sync for TextSynthClient
impl Unpin for TextSynthClient
impl !UnwindSafe for TextSynthClient
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