pub trait ModelCatalogProvider: Sync {
// Required methods
fn provider_key(&self) -> &'static str;
fn fetch<'a>(
&'a self,
client: &'a Client,
overrides: &'a BTreeMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<CatalogModel>, String>> + Send + 'a>>;
}Required Methods§
fn provider_key(&self) -> &'static str
fn fetch<'a>( &'a self, client: &'a Client, overrides: &'a BTreeMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<Vec<CatalogModel>, String>> + Send + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".