pub struct ImageOptions {
pub prompt: Option<String>,
pub n: u32,
pub size: Option<ImageSize>,
pub aspect_ratio: Option<AspectRatio>,
pub seed: Option<u64>,
pub files: Vec<ImageFile>,
pub mask: Option<ImageFile>,
pub provider_options: ProviderOptions,
pub headers: Headers,
pub cancellation: CancellationToken,
}Expand description
Options for an image generation call.
Fields§
§prompt: Option<String>Text prompt; None for pure edit/variation calls.
n: u32Number of images to generate.
size: Option<ImageSize>Requested size.
aspect_ratio: Option<AspectRatio>Requested aspect ratio.
seed: Option<u64>Random seed.
files: Vec<ImageFile>Reference or input images.
mask: Option<ImageFile>Mask image for edits.
provider_options: ProviderOptionsProvider-specific options keyed by provider name.
headers: HeadersAdditional request headers.
cancellation: CancellationTokenCancellation token.
Implementations§
Trait Implementations§
Source§impl Clone for ImageOptions
impl Clone for ImageOptions
Source§fn clone(&self) -> ImageOptions
fn clone(&self) -> ImageOptions
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 ImageOptions
impl Debug for ImageOptions
Auto Trait Implementations§
impl !Freeze for ImageOptions
impl RefUnwindSafe for ImageOptions
impl Send for ImageOptions
impl Sync for ImageOptions
impl Unpin for ImageOptions
impl UnsafeUnpin for ImageOptions
impl UnwindSafe for ImageOptions
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