pub struct Github { /* private fields */ }
Trait Implementations
sourceimpl Provider for Github
impl Provider for Github
type Project = GithubProject
type Error = GithubApiErrorResponse
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<GithubProject>, ApiErrorResponse<GithubApiErrorResponse>>
fn get_group_projects(
&self,
group: &str
) -> Result<Vec<GithubProject>, ApiErrorResponse<GithubApiErrorResponse>>
fn get_accessible_projects(
&self
) -> Result<Vec<GithubProject>, ApiErrorResponse<GithubApiErrorResponse>>
fn get_current_user(
&self
) -> Result<String, ApiErrorResponse<GithubApiErrorResponse>>
fn get_own_projects(
&self
) -> Result<Vec<Self::Project>, ApiErrorResponse<Self::Error>>
sourcefn 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
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 RefUnwindSafe for Github
impl Send for Github
impl Sync for Github
impl Unpin for Github
impl UnwindSafe for Github
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more