pub struct ContentPartImageUrl {
pub url: String,
pub detail: Option<ImageDetail>,
}Expand description
Contains either an image URL or a data URL for a base64 encoded image.
Fields§
§url: StringEither a URL of the image or the base64 encoded image data.
detail: Option<ImageDetail>Specifies the detail level of the image. Learn more.
vLLM does not support this field and rejects requests that set it.
Trait Implementations§
Source§impl Clone for ContentPartImageUrl
impl Clone for ContentPartImageUrl
Source§impl Debug for ContentPartImageUrl
impl Debug for ContentPartImageUrl
Source§impl<'de> Deserialize<'de> for ContentPartImageUrl
impl<'de> Deserialize<'de> for ContentPartImageUrl
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 ContentPartImageUrl
impl RefUnwindSafe for ContentPartImageUrl
impl Send for ContentPartImageUrl
impl Sync for ContentPartImageUrl
impl Unpin for ContentPartImageUrl
impl UnsafeUnpin for ContentPartImageUrl
impl UnwindSafe for ContentPartImageUrl
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