Trait boot_core::Fetchable

source ·
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.

Required Methods§

source

fn path(resource: &str) -> PathBuf

The path of the fetchable resource.

Provided Methods§

source

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,

Fetches the fetchable resource.

Implementors§