pub fn check_mime_from_list(&self, required_mime: &[Mime]) -> bool {
        if let Some(c) = &self.content_type {
            return required_mime.iter().any(|x| x == c);
        }
        false
    }
/// Function to check if the mime is present in a list.
Function to check if the mime is present in a list.
Function to check if the mime is present in a list .
pub fn check_mime_from_list(&self, required_mime: &[Mime]) -> bool {
        if let Some(c) = &self.content_type {
            return required_mime.iter().any(|x| x == c);
        }
        false
    }
pub fn check_mime_from_list ( & self , required_mime : & [ Mime ] ) -> bool { if let Some ( c ) = & self . content_type { return required_mime . iter ( ) . any ( | x | x == c ) ; } false }
Function to check if the mime is present in a list.
Function to check if the mime is present in a list .
&self
required_mime
&[Mime]
&self
required_mime
&[Mime]