pub enum ImageRef {
Url {
url: Url,
extensions: MetadataMap,
},
File {
path: PathBuf,
extensions: MetadataMap,
},
Inline {
mime: String,
bytes: Vec<u8>,
extensions: MetadataMap,
},
}Expand description
Reference to an image — inline bytes, URL, or file path. Research annotations live
in extensions (reverse-DNS namespaced).
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageRef
impl<'de> Deserialize<'de> for ImageRef
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
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