Trait gitlab_client::GitlabClient

source ·
pub trait GitlabClient<Cx>: Send + Sync {
    type Error<'req>
       where Cx: 'req;

    // Required method
    fn get_project_list(
        self,
        query: &GetProjectListQuery<Cx>
    ) -> impl Send + Future<Output = Result<Page<Project>, Self::Error<'_>>>;
}

Required Associated Types§

source

type Error<'req> where Cx: 'req

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, S, Cx> GitlabClient<Cx> for &'a mut S
where Self: Send + Sync, Cx: 'static + Send + Sync, for<'req> S: Service<&'req GetProjectListQuery<Cx>, Response = Page<Project>>, for<'req> <S as Service<&'req GetProjectListQuery<Cx>>>::Future: Send,

§

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

source§

async fn get_project_list<'r>( self, query: &'r GetProjectListQuery<Cx> ) -> Result<Page<Project>, Self::Error<'r>>

Implementors§