pub struct ImageModelInfo {
pub id: &'static str,
pub provider: &'static str,
pub sizes: &'static [ImageSize],
pub max_images: u8,
pub supports_editing: bool,
pub supports_variations: bool,
pub price_per_image: f64,
}Expand description
Information about an image generation model.
Fields§
§id: &'static strModel ID/name.
provider: &'static strProvider that offers this model.
sizes: &'static [ImageSize]Supported sizes.
max_images: u8Maximum images per request.
supports_editing: boolWhether the model supports image editing.
supports_variations: boolWhether the model supports variations.
price_per_image: f64Price per image (USD).
Trait Implementations§
Source§impl Clone for ImageModelInfo
impl Clone for ImageModelInfo
Source§fn clone(&self) -> ImageModelInfo
fn clone(&self) -> ImageModelInfo
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 moreAuto Trait Implementations§
impl Freeze for ImageModelInfo
impl RefUnwindSafe for ImageModelInfo
impl Send for ImageModelInfo
impl Sync for ImageModelInfo
impl Unpin for ImageModelInfo
impl UnwindSafe for ImageModelInfo
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