chore: document allowed mime types order preference
This commit is contained in:
parent
7da622c80b
commit
b03e62069f
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ impl MimeType {
|
||||||
/// Describes the mime types which are accepted.
|
/// Describes the mime types which are accepted.
|
||||||
pub trait AllowedMimeTypes: TryFrom<(Vec<u8>, MimeType)> {
|
pub trait AllowedMimeTypes: TryFrom<(Vec<u8>, MimeType)> {
|
||||||
/// List allowed mime types for the type to convert from a byte slice.
|
/// 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]>;
|
fn allowed() -> Cow<'static, [MimeType]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue