Trait opendal::raw::PathQuery

source ·
pub trait PathQuery {
    // Required methods
    fn root<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        parent_id: &'life1 str,
        name: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn create_dir<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        parent_id: &'life1 str,
        name: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Available on crate feature internal-path-cache only.
Expand description

The trait required for path cacher.

Required Methods§

source

fn root<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch the id for the root of the service.

source

fn query<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, parent_id: &'life1 str, name: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Query the id by parent_id and name.

source

fn create_dir<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, parent_id: &'life1 str, name: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Create a dir by parent_id and name.

Implementors§