Expand description

This crate provides a derive macro for the AssetManager trait.

Example

use derive_asset_container::AssetManager;

#[derive(Clone, AssetManager)]
#[asset(asset(TestAsset))]
struct Struct {
  field: TestAsset,
  inner: InnerStruct,
}

#[derive(Clone, AssetManager)]
#[asset(asset(TestAsset), lazy)]
struct InnerStruct {
  field: TestAsset,
}

Derive Macros