pub trait ThumbnailProvider {
type GatheredDataT: Hash + 'static;
// Required methods
fn asset_type(&self) -> &'static str;
fn version(&self) -> u32;
fn gather(
&self,
context: ThumbnailProviderGatherContext<'_>,
) -> Self::GatheredDataT;
fn render<'a>(
&'a self,
context: &'a ThumbnailProviderRenderContext<'a>,
gathered_data: Self::GatheredDataT,
) -> PipelineResult<ThumbnailImage>;
}