pub trait Fetchable: DeserializeOwned {
// Required method
fn path(resource: &str) -> PathBuf;
// Provided method
fn fetch<'async_trait>(
chain_name: String,
commit: Option<String>
) -> Pin<Box<dyn Future<Output = Result<Self, RegistryError>> + Send + 'async_trait, Global>>
where Self: Send + 'async_trait { ... }
}
Expand description
Fetchable
represents the basic expectations for external data or resources that
can be fetched.