pub struct CreateEditRequest<'a> {
pub input: Option<String>,
pub instruction: String,
pub model: String,
pub n: Option<i64>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
/* private fields */
}
Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§input: Option<String>
§instruction: String
§model: String
§n: Option<i64>
§temperature: Option<f64>
§top_p: Option<f64>
Implementations§
Source§impl<'a> CreateEditRequest<'a>
impl<'a> CreateEditRequest<'a>
Trait Implementations§
Source§impl<'a> Clone for CreateEditRequest<'a>
impl<'a> Clone for CreateEditRequest<'a>
Source§fn clone(&self) -> CreateEditRequest<'a>
fn clone(&self) -> CreateEditRequest<'a>
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 moreSource§impl<'a> IntoFuture for CreateEditRequest<'a>
impl<'a> IntoFuture for CreateEditRequest<'a>
Source§type Output = Result<CreateEditResponse, Error<InMemoryBody>>
type Output = Result<CreateEditResponse, Error<InMemoryBody>>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateEditRequest<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateEditRequest<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for CreateEditRequest<'a>
impl<'a> !RefUnwindSafe for CreateEditRequest<'a>
impl<'a> Send for CreateEditRequest<'a>
impl<'a> Sync for CreateEditRequest<'a>
impl<'a> Unpin for CreateEditRequest<'a>
impl<'a> !UnwindSafe for CreateEditRequest<'a>
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