pub enum ImageRef {
DataUri {
mime_type: String,
base64: String,
},
Base64 {
media_type: String,
base64: String,
},
Url(String),
}Expand description
Reference to how the image was originally specified.
Variants§
DataUri
Base64 data URI: data:image/png;base64,…
Base64
Plain base64 string (Anthropic style)
Url(String)
URL reference
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageRef
impl RefUnwindSafe for ImageRef
impl Send for ImageRef
impl Sync for ImageRef
impl Unpin for ImageRef
impl UnsafeUnpin for ImageRef
impl UnwindSafe for ImageRef
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