chore: document allowed mime types order preference

This commit is contained in:
Ashley Wulber 2024-02-28 15:57:02 -05:00
parent 7da622c80b
commit b03e62069f
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -70,6 +70,9 @@ impl MimeType {
/// Describes the mime types which are accepted.
pub trait AllowedMimeTypes: TryFrom<(Vec<u8>, MimeType)> {
/// 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.
fn allowed() -> Cow<'static, [MimeType]>;
}