Struct async_openai::types::ImageUrl
source · pub struct ImageUrl {
pub url: String,
pub detail: Option<ImageDetail>,
}
Fields§
§url: String
Either a URL of the image or the base64 encoded image data.
detail: Option<ImageDetail>
Specifies the detail level of the image. Learn more in the Vision guide.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ImageUrl
impl<'de> Deserialize<'de> for ImageUrl
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 ImageUrl
impl PartialEq for ImageUrl
impl StructuralPartialEq for ImageUrl
Auto Trait Implementations§
impl Freeze for ImageUrl
impl RefUnwindSafe for ImageUrl
impl Send for ImageUrl
impl Sync for ImageUrl
impl Unpin for ImageUrl
impl UnwindSafe for ImageUrl
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)