Enum async_openai::types::Image
source · pub enum Image {
Url {
url: String,
revised_prompt: Option<String>,
},
B64Json {
b64_json: Arc<String>,
revised_prompt: Option<String>,
},
}
Variants§
Url
The URL of the generated image, if response_format
is url
(default).
B64Json
The base64-encoded JSON of the generated image, if response_format
is b64_json
.
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
source§impl PartialEq for Image
impl PartialEq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
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