pub struct DataUrl {
pub media_type: MediaType,
pub data: Bytes,
pub is_base64: bool,
}Expand description
A parsed data: URL.
Fields§
§media_type: MediaTypeMedia type including any parameters other than base64.
data: BytesDecoded payload.
is_base64: boolWhether the payload was base64-encoded.
Trait Implementations§
impl Eq for DataUrl
impl StructuralPartialEq for DataUrl
Auto Trait Implementations§
impl !Freeze for DataUrl
impl RefUnwindSafe for DataUrl
impl Send for DataUrl
impl Sync for DataUrl
impl Unpin for DataUrl
impl UnsafeUnpin for DataUrl
impl UnwindSafe for DataUrl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.