pub struct ImageContentPart {
pub image_url: ImageUrl,
pub type_: ImageContentPartType,
}Expand description
Image content part
JSON schema
{
"description": "Image content part",
"type": "object",
"required": [
"image_url",
"type"
],
"properties": {
"image_url": {
"$ref": "#/definitions/ImageURL"
},
"type": {
"description": "Content type identifier",
"type": "string",
"enum": [
"image_url"
]
}
}
}Fields§
§image_url: ImageUrl§type_: ImageContentPartTypeContent type identifier
Trait Implementations§
Source§impl Clone for ImageContentPart
impl Clone for ImageContentPart
Source§fn clone(&self) -> ImageContentPart
fn clone(&self) -> ImageContentPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageContentPart
impl Debug for ImageContentPart
Source§impl<'de> Deserialize<'de> for ImageContentPart
impl<'de> Deserialize<'de> for ImageContentPart
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 From<ImageContentPart> for ContentPart
impl From<ImageContentPart> for ContentPart
Source§fn from(value: ImageContentPart) -> Self
fn from(value: ImageContentPart) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageContentPart
impl RefUnwindSafe for ImageContentPart
impl Send for ImageContentPart
impl Sync for ImageContentPart
impl Unpin for ImageContentPart
impl UnsafeUnpin for ImageContentPart
impl UnwindSafe for ImageContentPart
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