pub trait AsMimeTypes {
// Required methods
fn available(&self) -> Cow<'static, [String]>;
fn as_bytes(&self, mime_type: &str) -> Option<Cow<'static, [u8]>>;
}
Expand description
Can be converted to data with the available mime types.
pub trait AsMimeTypes {
// Required methods
fn available(&self) -> Cow<'static, [String]>;
fn as_bytes(&self, mime_type: &str) -> Option<Cow<'static, [u8]>>;
}
Can be converted to data with the available mime types.