#[non_exhaustive]pub struct CreateImageVariationRequest {
pub image: ImageUpload,
pub model: Option<String>,
pub n: Option<u32>,
pub response_format: Option<String>,
pub size: Option<String>,
pub user: Option<String>,
}Expand description
EN: Request body descriptor for POST /v1/images/variations.
中文:POST /v1/images/variations 的请求体描述。
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.image: ImageUploadEN: Source image to vary. 中文:要生成变体的源图像。
model: Option<String>EN: Optional image variation model id. 中文:可选的图像变体模型 ID。
n: Option<u32>EN: Optional number of images to generate. 中文:可选的生成图像数量。
response_format: Option<String>EN: Optional response format. 中文:可选的响应格式。
size: Option<String>EN: Optional generated image size. 中文:可选的生成图像尺寸。
user: Option<String>EN: Optional end-user identifier. 中文:可选的终端用户标识。
Implementations§
Source§impl CreateImageVariationRequest
impl CreateImageVariationRequest
Sourcepub fn builder() -> CreateImageVariationRequestBuilder
pub fn builder() -> CreateImageVariationRequestBuilder
EN: Starts building an image variation request. 中文:开始构建图像变体请求。
Trait Implementations§
Source§impl Clone for CreateImageVariationRequest
impl Clone for CreateImageVariationRequest
Source§fn clone(&self) -> CreateImageVariationRequest
fn clone(&self) -> CreateImageVariationRequest
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 CreateImageVariationRequest
impl Debug for CreateImageVariationRequest
Source§impl PartialEq for CreateImageVariationRequest
impl PartialEq for CreateImageVariationRequest
Source§fn eq(&self, other: &CreateImageVariationRequest) -> bool
fn eq(&self, other: &CreateImageVariationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateImageVariationRequest
Auto Trait Implementations§
impl !Freeze for CreateImageVariationRequest
impl RefUnwindSafe for CreateImageVariationRequest
impl Send for CreateImageVariationRequest
impl Sync for CreateImageVariationRequest
impl Unpin for CreateImageVariationRequest
impl UnsafeUnpin for CreateImageVariationRequest
impl UnwindSafe for CreateImageVariationRequest
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