pub struct ImageGenConfig {
pub aspect_ratio: Option<String>,
pub size: Option<String>,
}Expand description
Configuration for image generation requests.
Fields§
§aspect_ratio: Option<String>Aspect ratio for the generated image (e.g., "16:9").
size: Option<String>Absolute dimensions (e.g., "1024x1024").
Implementations§
Source§impl ImageGenConfig
impl ImageGenConfig
Sourcepub fn data_uri_from_path(path: &Path) -> Result<String>
pub fn data_uri_from_path(path: &Path) -> Result<String>
Sourcepub fn data_uri_from_bytes(bytes: &[u8], mime: &str) -> String
pub fn data_uri_from_bytes(bytes: &[u8], mime: &str) -> String
Trait Implementations§
Source§impl Clone for ImageGenConfig
impl Clone for ImageGenConfig
Source§impl Debug for ImageGenConfig
impl Debug for ImageGenConfig
Auto Trait Implementations§
impl Freeze for ImageGenConfig
impl RefUnwindSafe for ImageGenConfig
impl Send for ImageGenConfig
impl Sync for ImageGenConfig
impl Unpin for ImageGenConfig
impl UnsafeUnpin for ImageGenConfig
impl UnwindSafe for ImageGenConfig
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