Struct Gitlab

Source
pub struct Gitlab { /* private fields */ }

Trait Implementations§

Source§

impl Provider for Gitlab

Source§

type Project = GitlabProject

Source§

type Error = GitlabApiErrorResponse

Source§

fn new( filter: Filter, secret_token: AuthToken, api_url_override: Option<String>, ) -> Result<Self, String>

Source§

fn filter(&self) -> &Filter

Source§

fn secret_token(&self) -> &AuthToken

Source§

fn auth_header_key() -> &'static str

Source§

fn get_user_projects( &self, user: &str, ) -> Result<Vec<GitlabProject>, ApiErrorResponse<GitlabApiErrorResponse>>

Source§

fn get_group_projects( &self, group: &str, ) -> Result<Vec<GitlabProject>, ApiErrorResponse<GitlabApiErrorResponse>>

Source§

fn get_accessible_projects( &self, ) -> Result<Vec<GitlabProject>, ApiErrorResponse<GitlabApiErrorResponse>>

Source§

fn get_current_user( &self, ) -> Result<String, ApiErrorResponse<GitlabApiErrorResponse>>

Source§

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>>

Calls the API at specific uri and expects a successful response of Vec back, or an error response U Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T