pub struct ImageUrlChunk {
pub type: Option<Type>,
pub image_url: Box<ImageUrl>,
}Expand description
ImageUrlChunk : {"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw0
Fields§
§type: Option<Type>§image_url: Box<ImageUrl>Implementations§
Source§impl ImageUrlChunk
impl ImageUrlChunk
Sourcepub fn new(image_url: ImageUrl) -> ImageUrlChunk
pub fn new(image_url: ImageUrl) -> ImageUrlChunk
{"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw0
Trait Implementations§
Source§impl Clone for ImageUrlChunk
impl Clone for ImageUrlChunk
Source§fn clone(&self) -> ImageUrlChunk
fn clone(&self) -> ImageUrlChunk
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 ImageUrlChunk
impl Debug for ImageUrlChunk
Source§impl Default for ImageUrlChunk
impl Default for ImageUrlChunk
Source§fn default() -> ImageUrlChunk
fn default() -> ImageUrlChunk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageUrlChunk
impl<'de> Deserialize<'de> for ImageUrlChunk
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 ImageUrlChunk
impl PartialEq for ImageUrlChunk
Source§impl Serialize for ImageUrlChunk
impl Serialize for ImageUrlChunk
impl StructuralPartialEq for ImageUrlChunk
Auto Trait Implementations§
impl Freeze for ImageUrlChunk
impl RefUnwindSafe for ImageUrlChunk
impl Send for ImageUrlChunk
impl Sync for ImageUrlChunk
impl Unpin for ImageUrlChunk
impl UnsafeUnpin for ImageUrlChunk
impl UnwindSafe for ImageUrlChunk
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