pub struct CompletionArgs { /* private fields */ }
Expand description
Options that affect the result
Implementations§
Source§impl CompletionArgs
impl CompletionArgs
Sourcepub fn builder() -> CompletionArgsBuilder
pub fn builder() -> CompletionArgsBuilder
Build a CompletionArgs
from the defaults
Sourcepub async fn complete_prompt(self, client: &Client) -> Result<Completion, Error>
pub async fn complete_prompt(self, client: &Client) -> Result<Completion, Error>
pub fn complete_prompt_sync(self, client: &Client) -> Result<Completion, Error>
Trait Implementations§
Source§impl Clone for CompletionArgs
impl Clone for CompletionArgs
Source§fn clone(&self) -> CompletionArgs
fn clone(&self) -> CompletionArgs
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompletionArgs
impl Debug for CompletionArgs
Source§impl From<&str> for CompletionArgs
impl From<&str> for CompletionArgs
Auto Trait Implementations§
impl Freeze for CompletionArgs
impl RefUnwindSafe for CompletionArgs
impl Send for CompletionArgs
impl Sync for CompletionArgs
impl Unpin for CompletionArgs
impl UnwindSafe for CompletionArgs
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