fn parse_disposition_type(disposition: &str) -> DispositionType {
    match &disposition.to_lowercase()[..] {
        "inline" => DispositionType::Inline,
        "attachment" => DispositionType::Attachment,
        "form-data" => DispositionType::FormData,
        extension => DispositionType::Extension(extension.to_string()),
    }
}
/// Convert the string represented disposition type to enum.
Convert the string represented disposition type to enum.
Convert the string represented disposition type to enum .
fn parse_disposition_type(disposition: &str) -> DispositionType {
    match &disposition.to_lowercase()[..] {
        "inline" => DispositionType::Inline,
        "attachment" => DispositionType::Attachment,
        "form-data" => DispositionType::FormData,
        extension => DispositionType::Extension(extension.to_string()),
    }
}
fn parse_disposition_type ( disposition : & str ) -> DispositionType { match & disposition . to_lowercase ( ) [ .. ] { " " => DispositionType :: Inline , " " => DispositionType :: Attachment , " " => DispositionType :: FormData , extension => DispositionType :: Extension ( extension . to_string ( ) ) , } }
Convert the string represented disposition type to enum.
Convert the string represented disposition type to enum .
disposition
&str
disposition
&str