pub trait Asset {
// Required methods
fn id(&self) -> &str;
fn path(&self) -> &str;
fn hash(&self) -> &DocumentId;
fn size(&self) -> u64;
fn mime_type(&self) -> &str;
}Expand description
Common trait for all asset types.
Required Methods§
Sourcefn hash(&self) -> &DocumentId
fn hash(&self) -> &DocumentId
Get the content hash of the asset.