pub struct GitHubAt<'a, R: ProcessRunner = JobRunner> { /* private fields */ }Expand description
A GitHub client with a working directory bound, so its repo-scoped methods
drop the leading dir argument (gh.at(dir).pr_list()). Construct one with
GitHub::at.
Implementations§
Source§impl<'a, R: ProcessRunner> GitHubAt<'a, R>
impl<'a, R: ProcessRunner> GitHubAt<'a, R>
Sourcepub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
pub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
Bound form of GitHub’s run_raw.
Sourcepub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
pub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
Bound form of GitHub’s run_raw_args.
Sourcepub async fn auth_status(&self) -> Result<bool>
pub async fn auth_status(&self) -> Result<bool>
Bound form of GitHub’s auth_status.
Sourcepub async fn repo_view(&self) -> Result<Repo>
pub async fn repo_view(&self) -> Result<Repo>
Bound form of GitHub’s repo_view (with dir pre-bound).
Sourcepub async fn pr_list(&self) -> Result<Vec<PullRequest>>
pub async fn pr_list(&self) -> Result<Vec<PullRequest>>
Bound form of GitHub’s pr_list (with dir pre-bound).
Sourcepub async fn pr_list_for_branch(
&self,
head: &str,
base: &str,
) -> Result<Vec<PullRequest>>
pub async fn pr_list_for_branch( &self, head: &str, base: &str, ) -> Result<Vec<PullRequest>>
Bound form of GitHub’s pr_list_for_branch (with dir pre-bound).
Sourcepub async fn pr_view(&self, number: u64) -> Result<PullRequest>
pub async fn pr_view(&self, number: u64) -> Result<PullRequest>
Bound form of GitHub’s pr_view (with dir pre-bound).
Trait Implementations§
Source§impl<R: ProcessRunner> Clone for GitHubAt<'_, R>
impl<R: ProcessRunner> Clone for GitHubAt<'_, R>
impl<R: ProcessRunner> Copy for GitHubAt<'_, R>
Auto Trait Implementations§
impl<'a, R> Freeze for GitHubAt<'a, R>
impl<'a, R> RefUnwindSafe for GitHubAt<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for GitHubAt<'a, R>
impl<'a, R> Sync for GitHubAt<'a, R>
impl<'a, R> Unpin for GitHubAt<'a, R>
impl<'a, R> UnsafeUnpin for GitHubAt<'a, R>
impl<'a, R> UnwindSafe for GitHubAt<'a, R>where
R: RefUnwindSafe,
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