pub struct GeneratedImage {
pub url: String,
pub size: Option<String>,
}Expand description
A single generated image, as returned by the provider API.
Fields§
§url: StringOriginal image URL returned by the API (valid for ~24h).
size: Option<String>Image resolution string from the API response (e.g. “2048*2048”).
Auto Trait Implementations§
impl Freeze for GeneratedImage
impl RefUnwindSafe for GeneratedImage
impl Send for GeneratedImage
impl Sync for GeneratedImage
impl Unpin for GeneratedImage
impl UnsafeUnpin for GeneratedImage
impl UnwindSafe for GeneratedImage
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