pub enum ImageSourceKind {
Embedded,
DataUri,
External,
}Expand description
How an image payload was declared by its source format.
Variants§
Embedded
Bytes embedded directly in a container record.
DataUri
Bytes encoded in a data URI.
External
A relative or otherwise external resource reference.
Trait Implementations§
Source§impl Clone for ImageSourceKind
impl Clone for ImageSourceKind
Source§fn clone(&self) -> ImageSourceKind
fn clone(&self) -> ImageSourceKind
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 moreimpl Copy for ImageSourceKind
Source§impl Debug for ImageSourceKind
impl Debug for ImageSourceKind
Source§impl<'de> Deserialize<'de> for ImageSourceKind
impl<'de> Deserialize<'de> for ImageSourceKind
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
impl Eq for ImageSourceKind
Source§impl PartialEq for ImageSourceKind
impl PartialEq for ImageSourceKind
Source§impl Serialize for ImageSourceKind
impl Serialize for ImageSourceKind
impl StructuralPartialEq for ImageSourceKind
Auto Trait Implementations§
impl Freeze for ImageSourceKind
impl RefUnwindSafe for ImageSourceKind
impl Send for ImageSourceKind
impl Sync for ImageSourceKind
impl Unpin for ImageSourceKind
impl UnsafeUnpin for ImageSourceKind
impl UnwindSafe for ImageSourceKind
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