Trait Restore
pub trait Restore<Strategy>: AssetDefinitionwhere
    Strategy: RestoreStrategy,{
    // Required method
    fn restore(
        id: &Self::Id,
        strategy: Strategy,
    ) -> Result<<Strategy as RestoreStrategy>::Success, DispatchError>;
}Expand description
A trait representing the ability of a certain asset to be restored.
This trait can be implemented multiple times using different
restore strategies.
A restore strategy defines restore parameters.
Required Methods§
fn restore(
    id: &Self::Id,
    strategy: Strategy,
) -> Result<<Strategy as RestoreStrategy>::Success, DispatchError>
fn restore( id: &Self::Id, strategy: Strategy, ) -> Result<<Strategy as RestoreStrategy>::Success, DispatchError>
Restore the asset identified by the given id using the provided strategy.
The ID type is retrieved from the AssetDefinition.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.