pub struct ImageModelCatalogEntry {
pub id: &'static str,
pub display_name: &'static str,
pub provider: &'static str,
pub is_default: bool,
pub legacy: bool,
pub supports_edit: bool,
pub supports_multiple_outputs: bool,
pub supported_aspect_ratios: &'static [&'static str],
pub supported_sizes: &'static [&'static str],
pub supported_image_sizes: &'static [&'static str],
pub supports_transparent_background: bool,
pub supports_partial_images: bool,
}Fields§
§id: &'static str§display_name: &'static str§provider: &'static str§is_default: bool§legacy: bool§supports_edit: bool§supports_multiple_outputs: bool§supported_aspect_ratios: &'static [&'static str]§supported_sizes: &'static [&'static str]§supported_image_sizes: &'static [&'static str]§supports_transparent_background: bool§supports_partial_images: boolImplementations§
Source§impl ImageModelCatalogEntry
impl ImageModelCatalogEntry
pub fn descriptor(&self) -> ImageModelDescriptor
Trait Implementations§
Source§impl Clone for ImageModelCatalogEntry
impl Clone for ImageModelCatalogEntry
Source§fn clone(&self) -> ImageModelCatalogEntry
fn clone(&self) -> ImageModelCatalogEntry
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 moreimpl Copy for ImageModelCatalogEntry
Auto Trait Implementations§
impl Freeze for ImageModelCatalogEntry
impl RefUnwindSafe for ImageModelCatalogEntry
impl Send for ImageModelCatalogEntry
impl Sync for ImageModelCatalogEntry
impl Unpin for ImageModelCatalogEntry
impl UnsafeUnpin for ImageModelCatalogEntry
impl UnwindSafe for ImageModelCatalogEntry
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