pub struct FileBytes {
pub bytes: Vec<u8>,
pub mime_type: Option<String>,
}Expand description
File content with its detected media type.
Fields§
§bytes: Vec<u8>§mime_type: Option<String>Media type if known (from the source or the file metadata).
Trait Implementations§
impl Eq for FileBytes
impl StructuralPartialEq for FileBytes
Auto Trait Implementations§
impl Forget for FileBytes
impl Freeze for FileBytes
impl Move for FileBytes
impl RefUnwindSafe for FileBytes
impl Send for FileBytes
impl Sync for FileBytes
impl Unpin for FileBytes
impl UnsafeUnpin for FileBytes
impl UnwindSafe for FileBytes
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.