#[non_exhaustive]pub struct CreateImageRequest {Show 15 fields
pub prompt: String,
pub background: Option<ImageBackground>,
pub model: Option<OpenAiModelId>,
pub moderation: Option<ImageModeration>,
pub n: Option<u32>,
pub output_compression: Option<u32>,
pub output_format: Option<ImageOutputFormat>,
pub partial_images: Option<u32>,
pub quality: Option<ImageQuality>,
pub response_format: Option<ImageResponseFormat>,
pub size: Option<ImageSize>,
pub stream: Option<bool>,
pub style: Option<ImageStyle>,
pub user: Option<String>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prompt: String§background: Option<ImageBackground>§model: Option<OpenAiModelId>§moderation: Option<ImageModeration>§n: Option<u32>§output_compression: Option<u32>§output_format: Option<ImageOutputFormat>§partial_images: Option<u32>§quality: Option<ImageQuality>§response_format: Option<ImageResponseFormat>§size: Option<ImageSize>§stream: Option<bool>§style: Option<ImageStyle>§user: Option<String>§rest: RestImplementations§
Trait Implementations§
Source§impl Clone for CreateImageRequest
impl Clone for CreateImageRequest
Source§fn clone(&self) -> CreateImageRequest
fn clone(&self) -> CreateImageRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateImageRequest
impl Debug for CreateImageRequest
Source§impl<'de> Deserialize<'de> for CreateImageRequest
impl<'de> Deserialize<'de> for CreateImageRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateImageRequest
impl PartialEq for CreateImageRequest
Source§impl Serialize for CreateImageRequest
impl Serialize for CreateImageRequest
impl StructuralPartialEq for CreateImageRequest
Auto Trait Implementations§
impl Freeze for CreateImageRequest
impl RefUnwindSafe for CreateImageRequest
impl Send for CreateImageRequest
impl Sync for CreateImageRequest
impl Unpin for CreateImageRequest
impl UnsafeUnpin for CreateImageRequest
impl UnwindSafe for CreateImageRequest
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