pub struct GeneratedImage {
pub url: Option<String>,
pub b64_json: Option<String>,
pub revised_prompt: Option<String>,
}Expand description
A generated image.
Fields§
§url: Option<String>URL to the generated image (if format is Url).
b64_json: Option<String>Base64-encoded image data (if format is B64Json).
revised_prompt: Option<String>The revised prompt used by the model (DALL-E 3 only).
Implementations§
Trait Implementations§
Source§impl Clone for GeneratedImage
impl Clone for GeneratedImage
Source§fn clone(&self) -> GeneratedImage
fn clone(&self) -> GeneratedImage
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 GeneratedImage
impl RefUnwindSafe for GeneratedImage
impl Send for GeneratedImage
impl Sync for GeneratedImage
impl Unpin 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