GithubClient

Trait GithubClient 

Source
pub trait GithubClient<Cx>: Send + Sync {
    type Error<'req>
       where Cx: 'req;

    // Required methods
    fn get_project_release_list(
        self,
        query: &GetProjectReleaseListQuery<Cx>,
    ) -> impl Send + Future<Output = Result<Page<Release>, Self::Error<'_>>>;
    fn get_project_release_list_page(
        self,
        query: &GetProjectReleaseListPageQuery<Cx>,
    ) -> impl Send + Future<Output = Result<Page<Release>, Self::Error<'_>>>;
}

Required Associated Types§

Source

type Error<'req> where Cx: 'req

Required Methods§

Source

fn get_project_release_list( self, query: &GetProjectReleaseListQuery<Cx>, ) -> impl Send + Future<Output = Result<Page<Release>, Self::Error<'_>>>

Source

fn get_project_release_list_page( self, query: &GetProjectReleaseListPageQuery<Cx>, ) -> impl Send + Future<Output = Result<Page<Release>, Self::Error<'_>>>

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.

Implementations on Foreign Types§

Source§

impl<S, Cx> GithubClient<Cx> for &mut S
where Self: Send + Sync, Cx: 'static + Send + Sync, for<'req, 'req> S: Service<&'req GetProjectReleaseListQuery<Cx>, Response = Page<Release>> + Service<&'req GetProjectReleaseListPageQuery<Cx>, Response = Page<Release>, Error = <S as Service<&'req GetProjectReleaseListQuery<Cx>>>::Error>, for<'req> <S as Service<&'req GetProjectReleaseListQuery<Cx>>>::Future: Send, for<'req> <S as Service<&'req GetProjectReleaseListPageQuery<Cx>>>::Future: Send,

Source§

type Error<'req> = <S as Service<&'req GetProjectReleaseListQuery<Cx>>>::Error where Cx: 'req

Source§

async fn get_project_release_list( self, query: &GetProjectReleaseListQuery<Cx>, ) -> Result<Page<Release>, Self::Error<'_>>

Source§

async fn get_project_release_list_page( self, query: &GetProjectReleaseListPageQuery<Cx>, ) -> Result<Page<Release>, Self::Error<'_>>

Implementors§