pub struct CreateImageRequest<'a> {
pub n: Option<i64>,
pub prompt: String,
pub response_format: Option<String>,
pub size: Option<String>,
pub user: Option<String>,
/* 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§
§n: Option<i64>
§prompt: String
§response_format: Option<String>
§size: Option<String>
§user: Option<String>
Implementations§
Source§impl<'a> CreateImageRequest<'a>
impl<'a> CreateImageRequest<'a>
Trait Implementations§
Source§impl<'a> Clone for CreateImageRequest<'a>
impl<'a> Clone for CreateImageRequest<'a>
Source§fn clone(&self) -> CreateImageRequest<'a>
fn clone(&self) -> CreateImageRequest<'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 CreateImageRequest<'a>
impl<'a> IntoFuture for CreateImageRequest<'a>
Source§type Output = Result<ImagesResponse, Error<InMemoryBody>>
type Output = Result<ImagesResponse, Error<InMemoryBody>>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateImageRequest<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateImageRequest<'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 CreateImageRequest<'a>
impl<'a> !RefUnwindSafe for CreateImageRequest<'a>
impl<'a> Send for CreateImageRequest<'a>
impl<'a> Sync for CreateImageRequest<'a>
impl<'a> Unpin for CreateImageRequest<'a>
impl<'a> !UnwindSafe for CreateImageRequest<'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