pub struct Completions<'c, P: Provider, H: HttpClient> { /* private fields */ }
Implementations§
Source§impl<'c, P: Provider, H: HttpClient> Completions<'c, P, H>
impl<'c, P: Provider, H: HttpClient> Completions<'c, P, H>
pub fn new(client: &'c Client<P, H>) -> Self
pub async fn create( &self, request: CompletionRequest, ) -> Result<CompletionResponse, Error>
Trait Implementations§
Source§impl<'c, P: Clone + Provider, H: Clone + HttpClient> Clone for Completions<'c, P, H>
impl<'c, P: Clone + Provider, H: Clone + HttpClient> Clone for Completions<'c, P, H>
Source§fn clone(&self) -> Completions<'c, P, H>
fn clone(&self) -> Completions<'c, P, H>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'c, P, H> Freeze for Completions<'c, P, H>
impl<'c, P, H> RefUnwindSafe for Completions<'c, P, H>where
P: RefUnwindSafe,
H: RefUnwindSafe,
impl<'c, P, H> Send for Completions<'c, P, H>
impl<'c, P, H> Sync for Completions<'c, P, H>
impl<'c, P, H> Unpin for Completions<'c, P, H>
impl<'c, P, H> UnwindSafe for Completions<'c, P, H>where
P: RefUnwindSafe,
H: RefUnwindSafe,
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