let text = mime2::text::PLAIN; assert_eq!(text.ttype, "text"); assert_eq!(text.subtype,"plain"); assert_eq!(text.to_string(),"text/plain");