pub struct Image {
pub b64_json: Option<String>,
pub revised_prompt: Option<String>,
pub url: Option<String>,
}Expand description
Represents the url or the content of an image generated by the Images API.
JSON schema
{
"description": "Represents the url or the content of an image generated by the Images API.",
"type": "object",
"properties": {
"b64_json": {
"description": "The base64-encoded JSON of the generated image, if\n`response_format` is `b64_json`.\n",
"type": "string"
},
"revised_prompt": {
"description": "The prompt that was used to generate the image, if there was any\nrevision to the prompt.\n",
"type": "string"
},
"url": {
"description": "The URL of the generated image, if `response_format` is `url`\n(default).\n",
"type": "string"
}
}
}Fields§
§b64_json: Option<String>The base64-encoded JSON of the generated image, if
response_format is b64_json.
revised_prompt: Option<String>The prompt that was used to generate the image, if there was any revision to the prompt.
url: Option<String>The URL of the generated image, if response_format is url
(default).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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 Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin 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