pub struct Image {
pub b64_json: Option<String>,
pub url: Option<String>,
pub revised_prompt: Option<String>,
}
Expand description
Represents the content or the URL of an image generated by the OpenAI API.
Fields§
§b64_json: Option<String>
The base64-encoded JSON of the generated image.
url: Option<String>
When using dall-e-2
or dall-e-3
, the URL of the generated image if
response_format
is set to url
(default value).
revised_prompt: Option<String>
For dall-e-3
only, the revised prompt that was used to generate the
image.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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