pub trait DownloadUrlsGenerator: DynClone + Debug + Sync + Send {
    fn generate(
        &self,
        object_name: &str,
        options: GeneratorOptions<'_>
    ) -> Result<Vec<Uri, Global>, Error>; fn async_generate(
        &'a self,
        object_name: &'a str,
        options: GeneratorOptions<'a>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Uri, Global>, Error>> + Send + 'a, Global>> { ... } }
Expand description

生成下载 URL 列表的接口

同时提供阻塞接口和异步接口,异步接口则需要启用 async 功能

Required Methods

生成下载 URL 列表

该方法的异步版本为 Self::async_generate

Provided Methods

异步生成下载 URL 列表

Implementations on Foreign Types

Implementors