pub struct DataUri {
pub mediatype: String,
pub base64: bool,
pub data: Vec<u8>,
}Expand description
Parsed components of a data: URI.
Fields§
§mediatype: StringMedia type, exactly as written between data: and the , (less
the trailing ;base64 marker if present). Empty string means
the URI used the RFC default of text/plain;charset=US-ASCII;
callers that care can apply that default themselves.
base64: boolTrue iff the URI included the ;base64 marker.
data: Vec<u8>Decoded payload bytes.
Trait Implementations§
impl Eq for DataUri
impl StructuralPartialEq for DataUri
Auto Trait Implementations§
impl Freeze for DataUri
impl RefUnwindSafe for DataUri
impl Send for DataUri
impl Sync for DataUri
impl Unpin for DataUri
impl UnsafeUnpin for DataUri
impl UnwindSafe for DataUri
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