#[non_exhaustive]pub struct ImageModel {
pub model: String,
pub id: String,
pub name: Option<String>,
pub description: Option<String>,
pub accepts_images: Option<bool>,
}Expand description
An image model offered by a provider, see list_models.
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.model: StringName for ImageGenerator::new and from_model, with
the provider prefix, for example openrouter::bytedance-seed/seedream-4.5.
id: StringName of the model in the API.
name: Option<String>Display name.
description: Option<String>Description.
accepts_images: Option<bool>Whether the model takes input images (needed to edit), when the API says so.
Implementations§
Trait Implementations§
Source§impl Clone for ImageModel
impl Clone for ImageModel
Source§impl Debug for ImageModel
impl Debug for ImageModel
Source§impl PartialEq for ImageModel
impl PartialEq for ImageModel
impl StructuralPartialEq for ImageModel
Auto Trait Implementations§
impl Freeze for ImageModel
impl RefUnwindSafe for ImageModel
impl Send for ImageModel
impl Sync for ImageModel
impl Unpin for ImageModel
impl UnsafeUnpin for ImageModel
impl UnwindSafe for ImageModel
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