pub struct ImageContentPart {
pub image_url: ImageUrl,
pub dimensions: Option<(u32, u32)>,
}
Fields§
§image_url: ImageUrl
§dimensions: Option<(u32, u32)>
The witdth and height of the image in pixels. the field is used for tokens calculation, it won’t serilized, or deserialized when it’s None.
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 · 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 Default for ImageContentPart
impl Default for ImageContentPart
Source§fn default() -> ImageContentPart
fn default() -> ImageContentPart
Returns the “default value” for a type. Read more
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 PartialEq for ImageContentPart
impl PartialEq for ImageContentPart
Source§impl Serialize for ImageContentPart
impl Serialize for ImageContentPart
impl StructuralPartialEq for ImageContentPart
Auto Trait Implementations§
impl Freeze for ImageContentPart
impl RefUnwindSafe for ImageContentPart
impl Send for ImageContentPart
impl Sync for ImageContentPart
impl Unpin 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