pub struct ImageObject {
pub b64_json: Option<String>,
pub url: Option<String>,
pub revised_prompt: String,
}
Fields§
§b64_json: Option<String>
The base64-encoded JSON of the generated image, if response_format is b64_json
url: Option<String>
The URL of the generated image, if response_format is url (default).
revised_prompt: String
The prompt that was used to generate the image, if there was any revision to the prompt.
Trait Implementations§
Source§impl Clone for ImageObject
impl Clone for ImageObject
Source§fn clone(&self) -> ImageObject
fn clone(&self) -> ImageObject
Returns a copy 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 moreSource§impl Debug for ImageObject
impl Debug for ImageObject
Source§impl<'de> Deserialize<'de> for ImageObject
impl<'de> Deserialize<'de> for ImageObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImageObject
impl RefUnwindSafe for ImageObject
impl Send for ImageObject
impl Sync for ImageObject
impl Unpin for ImageObject
impl UnwindSafe for ImageObject
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