#[non_exhaustive]pub struct CreateImageVariationRequestBuilder { /* private fields */ }Expand description
EN: Builder for image variation requests. 中文:图像变体请求的构建器。
Implementations§
Source§impl CreateImageVariationRequestBuilder
impl CreateImageVariationRequestBuilder
Sourcepub fn image(self, image: ImageUpload) -> Self
pub fn image(self, image: ImageUpload) -> Self
EN: Sets the image to vary. 中文:设置要生成变体的图像。
Sourcepub fn model(self, model: impl Into<String>) -> Self
pub fn model(self, model: impl Into<String>) -> Self
EN: Sets the optional variation model id. 中文:设置可选的图像变体模型 ID。
Sourcepub fn response_format(self, response_format: impl Into<String>) -> Self
pub fn response_format(self, response_format: impl Into<String>) -> Self
EN: Sets the optional response format. 中文:设置可选的响应格式。
Sourcepub fn size(self, size: impl Into<String>) -> Self
pub fn size(self, size: impl Into<String>) -> Self
EN: Sets the optional generated image size. 中文:设置可选的生成图像尺寸。
Sourcepub fn user(self, user: impl Into<String>) -> Self
pub fn user(self, user: impl Into<String>) -> Self
EN: Sets the optional end-user identifier. 中文:设置可选的终端用户标识。
Sourcepub fn build(self) -> Result<CreateImageVariationRequest, LingerError>
pub fn build(self) -> Result<CreateImageVariationRequest, LingerError>
EN: Builds and validates the request. 中文:构建并校验请求。
Trait Implementations§
Source§impl Clone for CreateImageVariationRequestBuilder
impl Clone for CreateImageVariationRequestBuilder
Source§fn clone(&self) -> CreateImageVariationRequestBuilder
fn clone(&self) -> CreateImageVariationRequestBuilder
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 Default for CreateImageVariationRequestBuilder
impl Default for CreateImageVariationRequestBuilder
Source§fn default() -> CreateImageVariationRequestBuilder
fn default() -> CreateImageVariationRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CreateImageVariationRequestBuilder
impl RefUnwindSafe for CreateImageVariationRequestBuilder
impl Send for CreateImageVariationRequestBuilder
impl Sync for CreateImageVariationRequestBuilder
impl Unpin for CreateImageVariationRequestBuilder
impl UnsafeUnpin for CreateImageVariationRequestBuilder
impl UnwindSafe for CreateImageVariationRequestBuilder
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