pub fn content_disposition(&self) -> Option<ContentDisposition> {
        // RFC 7578: 'Each part MUST contain a Content-Disposition header field
        // where the disposition type is "form-data".'
        if let Some(content_disposition) = self.headers.get(&header::CONTENT_DISPOSITION) {
            ContentDisposition::from_raw(content_disposition).ok()
        } else {
            None
        }
    }
/// Get the content disposition of the field, if it exists
Get the content disposition of the field, if it exists
Get the content disposition of the field if it exists
pub fn content_disposition(&self) -> Option<ContentDisposition> {
        // RFC 7578: 'Each part MUST contain a Content-Disposition header field
        // where the disposition type is "form-data".'
        if let Some(content_disposition) = self.headers.get(&header::CONTENT_DISPOSITION) {
            ContentDisposition::from_raw(content_disposition).ok()
        } else {
            None
        }
    }
pub fn content_disposition ( & self ) -> Option < ContentDisposition > { // RFC 7578: 'Each part MUST contain a Content-Disposition header field // where the disposition type is "form-data".' if let Some ( content_disposition ) = self . headers . get ( & header :: CONTENT_DISPOSITION ) { ContentDisposition :: from_raw ( content_disposition ) . ok ( ) } else { None } }
Get the content disposition of the field, if it exists
Get the content disposition of the field if it exists
&self
&self