pub struct Bytes {
pub data: Bytes,
pub content_type: Option<Mime>,
pub file_name: Option<String>,
}Expand description
Read the field into memory.
Fields§
§data: BytesThe data.
content_type: Option<Mime>The value of the content-type header.
file_name: Option<String>The filename value in the content-disposition header.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
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