Skip to main content

CdnCommitAssetsStrategy

Trait CdnCommitAssetsStrategy 

Source
pub trait CdnCommitAssetsStrategy {
    // Required methods
    fn insert_asset(
        &self,
        collection: &CollectionKey,
        full_path: &FullPath,
        asset: &Asset,
        rule: &Rule,
    );
    fn insert_asset_encoding(
        &self,
        full_path: &FullPath,
        encoding_type: &str,
        encoding: &AssetEncoding,
        asset: &mut Asset,
        rule: &Rule,
    );
    fn delete_assets(&self, collection: &CollectionKey) -> Result<(), String>;
}

Required Methods§

Source

fn insert_asset( &self, collection: &CollectionKey, full_path: &FullPath, asset: &Asset, rule: &Rule, )

Source

fn insert_asset_encoding( &self, full_path: &FullPath, encoding_type: &str, encoding: &AssetEncoding, asset: &mut Asset, rule: &Rule, )

Source

fn delete_assets(&self, collection: &CollectionKey) -> Result<(), String>

Implementors§