GithubClient

Trait GithubClient 

Source
pub trait GithubClient<Cx, Str>: Send + Sync {
    type GetProjectReleaseListError<'req>
       where Cx: 'req,
             Str: 'req;
    type GetProjectReleaseListPageError<'req>
       where Cx: 'req,
             Str: 'req;

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

Required Associated Types§

Source

type GetProjectReleaseListError<'req> where Cx: 'req, Str: 'req

Source

type GetProjectReleaseListPageError<'req> where Cx: 'req, Str: 'req

Required Methods§

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, Str> GithubClient<Cx, Str> for &mut S
where Self: Send + Sync, Cx: Send + Sync, Str: Send + Sync, for<'req, 'req> S: Service<&'req GetProjectReleaseListQuery<Cx, Str>, Response = Page<Release>, Future: Send> + Service<&'req GetProjectReleaseListPageQuery<Cx, Str>, Response = Page<Release>, Future: Send>,

Source§

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

Source§

type GetProjectReleaseListPageError<'req> = <S as Service<&'req GetProjectReleaseListPageQuery<Cx, Str>>>::Error where Cx: 'req, Str: 'req

Source§

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

Source§

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

Implementors§