#[non_exhaustive]pub struct ResponseImageGenerationMask {
pub image_url: Option<String>,
pub file_id: Option<String>,
}Expand description
EN: Image generation mask for inpainting edits. 中文:修补编辑使用的图像生成遮罩。
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_url: Option<String>EN: Base64 data URL mask image. 中文:base64 data URL 遮罩图像。
file_id: Option<String>EN: Uploaded file id for the mask image. 中文:遮罩图像的已上传文件 ID。
Implementations§
Trait Implementations§
Source§impl Clone for ResponseImageGenerationMask
impl Clone for ResponseImageGenerationMask
Source§fn clone(&self) -> ResponseImageGenerationMask
fn clone(&self) -> ResponseImageGenerationMask
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 ResponseImageGenerationMask
impl Debug for ResponseImageGenerationMask
Source§impl Default for ResponseImageGenerationMask
impl Default for ResponseImageGenerationMask
Source§fn default() -> ResponseImageGenerationMask
fn default() -> ResponseImageGenerationMask
Returns the “default value” for a type. Read more
impl Eq for ResponseImageGenerationMask
Source§impl PartialEq for ResponseImageGenerationMask
impl PartialEq for ResponseImageGenerationMask
Source§fn eq(&self, other: &ResponseImageGenerationMask) -> bool
fn eq(&self, other: &ResponseImageGenerationMask) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseImageGenerationMask
Auto Trait Implementations§
impl Freeze for ResponseImageGenerationMask
impl RefUnwindSafe for ResponseImageGenerationMask
impl Send for ResponseImageGenerationMask
impl Sync for ResponseImageGenerationMask
impl Unpin for ResponseImageGenerationMask
impl UnsafeUnpin for ResponseImageGenerationMask
impl UnwindSafe for ResponseImageGenerationMask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.