Struct axum_typed_multipart::FieldMetadata
source · pub struct FieldMetadata {
pub name: Option<String>,
pub file_name: Option<String>,
pub content_type: Option<String>,
pub headers: HeaderMap,
}
Expand description
Additional information about the file supplied by the client in the request.
Fields§
§name: Option<String>
Name of the HTML field in the form.
If the TryFromMultipart implementation for the struct where this field is used was generated using the derive macro it will make it safe to unwrap this value since the field name must always be present to allow for mapping it to a struct field.
Extracted from the
Content-Disposition
header.
file_name: Option<String>
Original name of the file transmitted.
The filename is always optional and must not be used blindly by the application: path information should be stripped, and conversion to the server file system rules should be done.
Extracted from the
Content-Disposition
header.
content_type: Option<String>
MIME type of the field.
Extracted from the
Content-Type
header.
headers: HeaderMap
HTTP headers sent with the field.
Trait Implementations§
source§impl Clone for FieldMetadata
impl Clone for FieldMetadata
source§fn clone(&self) -> FieldMetadata
fn clone(&self) -> FieldMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more