VersionsStore

Trait VersionsStore 

Source
pub trait VersionsStore {
    // Required methods
    fn base_url(&self) -> Url;
    fn versions_get_all<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Version>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn versions_get_details<'life0, 'async_trait>(
        &'life0 self,
        version_number: VersionNumber,
    ) -> Pin<Box<dyn Future<Output = Result<Option<VersionDetails>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn url_path(&self, path: &[impl AsRef<str>]) -> Url { ... }
}

Required Methods§

Source

fn base_url(&self) -> Url

Source

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

Source

fn versions_get_details<'life0, 'async_trait>( &'life0 self, version_number: VersionNumber, ) -> Pin<Box<dyn Future<Output = Result<Option<VersionDetails>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn url_path(&self, path: &[impl AsRef<str>]) -> Url

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§