pub struct ImageAsset {
pub url: String,
pub caption: Option<String>,
pub mime_type: Option<String>,
}Expand description
An image reference plus optional descriptive metadata.
Fields§
§url: StringImage reference: an http(s) URL the embedding provider can fetch, or
a complete data: URI carrying inline base64 bytes.
caption: Option<String>Caption / alt text. Stored verbatim as the document content so that lexical tooling (BM25, keyword filters) stays functional.
mime_type: Option<String>Image MIME type (e.g. image/png). Informational for URL references,
required when the reference is inline bytes on inline-only backends.
Implementations§
Source§impl ImageAsset
impl ImageAsset
Trait Implementations§
Source§impl Clone for ImageAsset
impl Clone for ImageAsset
Source§fn clone(&self) -> ImageAsset
fn clone(&self) -> ImageAsset
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 ImageAsset
impl Debug for ImageAsset
Source§impl Default for ImageAsset
impl Default for ImageAsset
Source§fn default() -> ImageAsset
fn default() -> ImageAsset
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImageAsset
impl RefUnwindSafe for ImageAsset
impl Send for ImageAsset
impl Sync for ImageAsset
impl Unpin for ImageAsset
impl UnsafeUnpin for ImageAsset
impl UnwindSafe for ImageAsset
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