mime

Trait AllowedMimeTypes

source
pub trait AllowedMimeTypes:
    TryFrom<(Vec<u8>, String)>
    + Send
    + Sync
    + 'static {
    // Required method
    fn allowed() -> Cow<'static, [String]>;
}
Expand description

Describes the mime types which are accepted.

Required Methods§

source

fn allowed() -> Cow<'static, [String]>

List allowed mime types for the type to convert from a byte slice.

Allowed mime types should be listed in order of decreasing preference, most preferred first.

Object Safety§

This trait is not object safe.

Implementors§