pub trait EmbedableFile {
type Data: 'static + AsRef<[u8]>;
type Meta: 'static + AsRef<str>;
fn name(&self) -> Self::Meta;
fn data(&self) -> Self::Data;
fn data_gzip(&self) -> Option<Self::Data>;
fn data_br(&self) -> Option<Self::Data>;
#[cfg(feature = "compression-zstd")]
fn data_zstd(&self) -> Option<Self::Data>;
#[cfg(not(feature = "compression-zstd"))]
fn data_zstd(&self) -> Option<Self::Data> {
None
}
fn last_modified_timestamp(&self) -> Option<i64>;
fn last_modified(&self) -> Option<Self::Meta>;
fn hash(&self) -> Self::Meta;
fn etag(&self) -> Self::Meta;
fn mime_type(&self) -> Option<Self::Meta>;
}