Struct actix_multipart::form::bytes::Bytes
source · 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: Bytes
The 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§
source§impl<'t> FieldReader<'t> for Bytes
impl<'t> FieldReader<'t> for Bytes
§type Future = Pin<Box<dyn Future<Output = Result<Bytes, MultipartError>> + 't>>
type Future = Pin<Box<dyn Future<Output = Result<Bytes, MultipartError>> + 't>>
Future that resolves to a
Self
.source§fn read_field(
_: &'t HttpRequest,
field: Field,
limits: &'t mut Limits
) -> Self::Future
fn read_field( _: &'t HttpRequest, field: Field, limits: &'t mut Limits ) -> Self::Future
The form will call this function to handle the field.
Auto Trait Implementations§
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