GitlabClient

Trait 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<'_>>>

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> GitlabClient<Cx> for &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,

Source§

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

Source§

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

Implementors§