junobuild_storage::stable_utils

Function insert_asset_encoding_stable

Source
pub fn insert_asset_encoding_stable<K>(
    full_path: &FullPath,
    encoding_type: &str,
    encoding: &AssetEncoding,
    asset: &mut Asset,
    stable_encoding_chunk_key: impl Fn(&FullPath, &str, usize) -> K,
    chunks: &mut StableBTreeMap<K, Blob, Memory>,
)
where K: Clone + Serialize + Storable + Ord,