pub struct Gitlab { /* private fields */ }
Trait Implementations§
Source§impl Provider for Gitlab
impl Provider for Gitlab
type Project = GitlabProject
type Error = GitlabApiErrorResponse
fn new( filter: Filter, secret_token: AuthToken, api_url_override: Option<String>, ) -> Result<Self, String>
fn filter(&self) -> &Filter
fn secret_token(&self) -> &AuthToken
fn auth_header_key() -> &'static str
fn get_user_projects( &self, user: &str, ) -> Result<Vec<GitlabProject>, ApiErrorResponse<GitlabApiErrorResponse>>
fn get_group_projects( &self, group: &str, ) -> Result<Vec<GitlabProject>, ApiErrorResponse<GitlabApiErrorResponse>>
fn get_accessible_projects( &self, ) -> Result<Vec<GitlabProject>, ApiErrorResponse<GitlabApiErrorResponse>>
fn get_current_user( &self, ) -> Result<String, ApiErrorResponse<GitlabApiErrorResponse>>
fn get_own_projects( &self, ) -> Result<Vec<Self::Project>, ApiErrorResponse<Self::Error>>
Source§fn call_list(
&self,
uri: &str,
accept_header: Option<&str>,
) -> Result<Vec<Self::Project>, ApiErrorResponse<Self::Error>>
fn call_list( &self, uri: &str, accept_header: Option<&str>, ) -> Result<Vec<Self::Project>, ApiErrorResponse<Self::Error>>
Calls the API at specific uri and expects a successful response of Vec back, or an error
response U Read more
fn get_repos( &self, worktree_setup: bool, force_ssh: bool, remote_name: Option<String>, ) -> Result<HashMap<Option<String>, Vec<Repo>>, String>
Auto Trait Implementations§
impl Freeze for Gitlab
impl RefUnwindSafe for Gitlab
impl Send for Gitlab
impl Sync for Gitlab
impl Unpin for Gitlab
impl UnwindSafe for Gitlab
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more