pub struct UpscaleImageConfig {
pub http_options: Option<HttpOptions>,
pub output_gcs_uri: Option<String>,
pub safety_filter_level: Option<SafetyFilterLevel>,
pub person_generation: Option<PersonGeneration>,
pub include_rai_reason: Option<bool>,
pub output_mime_type: Option<String>,
pub output_compression_quality: Option<i32>,
pub enhance_input_image: Option<bool>,
pub image_preservation_factor: Option<f32>,
pub labels: Option<HashMap<String, String>>,
pub number_of_images: Option<i32>,
pub mode: Option<String>,
}Expand description
Upscale 图像配置(Vertex)。
Fields§
§http_options: Option<HttpOptions>Optional. HTTP request overrides (SDK only, not sent to API).
output_gcs_uri: Option<String>§safety_filter_level: Option<SafetyFilterLevel>§person_generation: Option<PersonGeneration>§include_rai_reason: Option<bool>§output_mime_type: Option<String>§output_compression_quality: Option<i32>§enhance_input_image: Option<bool>§image_preservation_factor: Option<f32>§labels: Option<HashMap<String, String>>§number_of_images: Option<i32>§mode: Option<String>Trait Implementations§
Source§impl Clone for UpscaleImageConfig
impl Clone for UpscaleImageConfig
Source§fn clone(&self) -> UpscaleImageConfig
fn clone(&self) -> UpscaleImageConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 UpscaleImageConfig
impl Debug for UpscaleImageConfig
Source§impl Default for UpscaleImageConfig
impl Default for UpscaleImageConfig
Source§fn default() -> UpscaleImageConfig
fn default() -> UpscaleImageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpscaleImageConfig
impl<'de> Deserialize<'de> for UpscaleImageConfig
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
Auto Trait Implementations§
impl Freeze for UpscaleImageConfig
impl RefUnwindSafe for UpscaleImageConfig
impl Send for UpscaleImageConfig
impl Sync for UpscaleImageConfig
impl Unpin for UpscaleImageConfig
impl UnsafeUnpin for UpscaleImageConfig
impl UnwindSafe for UpscaleImageConfig
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