pub struct Gitlab { /* private fields */ }Trait Implementations§
Source§impl Provider for Gitlab
impl Provider for Gitlab
type Error = GitlabApiErrorResponse
type Project = GitlabProject
fn new( filter: Filter, secret_token: AuthToken, api_url_override: Option<Url>, ) -> Result<Self, Error>
fn filter(&self) -> &Filter
fn secret_token(&self) -> &AuthToken
fn auth_header_key() -> &'static str
fn get_user_projects( &self, user: &User, ) -> Result<Vec<GitlabProject>, ApiError<GitlabApiErrorResponse>>
fn get_group_projects( &self, group: &Group, ) -> Result<Vec<GitlabProject>, ApiError<GitlabApiErrorResponse>>
fn get_accessible_projects( &self, ) -> Result<Vec<GitlabProject>, ApiError<GitlabApiErrorResponse>>
fn get_current_user(&self) -> Result<User, ApiError<GitlabApiErrorResponse>>
fn get_own_projects(&self) -> Result<Vec<Self::Project>, ApiError<Self::Error>>
Source§fn call_list(
&self,
uri: &Url,
accept_header: Option<&str>,
) -> Result<Vec<Self::Project>, ApiError<Self::Error>>
fn call_list( &self, uri: &Url, accept_header: Option<&str>, ) -> Result<Vec<Self::Project>, ApiError<Self::Error>>
Calls the API at specific uri and expects a successful response of
Vec<T> back, or an error response U Read morefn get_repos( &self, worktree_setup: WorktreeSetup, protocol_config: ProtocolConfig, remote_name: Option<RemoteName>, ) -> Result<HashMap<Option<ProjectNamespace>, Vec<Repo>>, Error>
Auto Trait Implementations§
impl Freeze for Gitlab
impl RefUnwindSafe for Gitlab
impl Send for Gitlab
impl Sync for Gitlab
impl Unpin for Gitlab
impl UnsafeUnpin 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