pub fn name(&self) -> Option<std::borrow::Cow<'_, str>> {
        match self {
            Filename::Name(None) => None,
            Filename::Name(Some(ref name)) => Some(name.as_str().into()),
            Filename::Extended(_, name) => Some(percent_decode_str(&name).decode_utf8_lossy()),
        }
    }
///Returns file name, percent decoded if necessary.
///
///Note: expects to work with utf-8 only.
Returns file name, percent decoded if necessary.
Note: expects to work with utf-8 only.
Returns file name percent decoded if necessary . Note : expects to work with utf - 8 only .
pub fn name(&self) -> Option<std::borrow::Cow<'_, str>> {
        match self {
            Filename::Name(None) => None,
            Filename::Name(Some(ref name)) => Some(name.as_str().into()),
            Filename::Extended(_, name) => Some(percent_decode_str(&name).decode_utf8_lossy()),
        }
    }
pub fn name ( & self ) -> Option < std :: borrow :: Cow < ' _ , str > > { match self { Filename :: Name ( None ) => None , Filename :: Name ( Some ( ref name ) ) => Some ( name . as_str ( ) . into ( ) ) , Filename :: Extended ( _ , name ) => Some ( percent_decode_str ( & name ) . decode_utf8_lossy ( ) ) , } }
Returns file name, percent decoded if necessary.
Returns file name percent decoded if necessary .
&self