use crate::error::Result;
use super::FetchResult;
pub trait SchemaFetcher: Send + Sync {
fn fetch(&self, url: &str) -> Result<FetchResult>;
}
#[cfg(feature = "tokio")]
#[async_trait::async_trait]
pub trait AsyncSchemaFetcher: Send + Sync {
async fn fetch(&self, url: &str) -> Result<FetchResult>;
}