pub struct GithubClient { /* private fields */ }
Implementations§
Source§impl GithubClient
impl GithubClient
pub fn new(token: &str, proxy: impl Into<Option<Proxy>>) -> Result<Self>
pub fn build_file_url(&self, repo: &Repository, path: &str) -> String
pub async fn get_file( &self, repo: &Repository, path: &str, branch: impl Into<Option<&str>>, ) -> Result<Option<FileContent>>
pub async fn read_dir( &self, repo: &Repository, path: &str, branch: impl Into<Option<&str>>, ) -> Result<Option<Directory>>
Sourcepub async fn search_for_issues(
&self,
__arg1: &Repository,
keyword: &str,
) -> Result<Vec<Issue>>
pub async fn search_for_issues( &self, __arg1: &Repository, keyword: &str, ) -> Result<Vec<Issue>>
Sourcepub async fn get_issue_timeline(
&self,
__arg1: &Repository,
issue_number: u64,
) -> Result<Vec<IssueEvent>>
pub async fn get_issue_timeline( &self, __arg1: &Repository, issue_number: u64, ) -> Result<Vec<IssueEvent>>
Get the timeline of an issue.
Sourcepub async fn get_repo_branches(
&self,
__arg1: &Repository,
) -> Result<Vec<String>>
pub async fn get_repo_branches( &self, __arg1: &Repository, ) -> Result<Vec<String>>
Get the branches of a repository.
Trait Implementations§
Source§impl Clone for GithubClient
impl Clone for GithubClient
Source§fn clone(&self) -> GithubClient
fn clone(&self) -> GithubClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GithubClient
impl !RefUnwindSafe for GithubClient
impl Send for GithubClient
impl Sync for GithubClient
impl Unpin for GithubClient
impl !UnwindSafe for GithubClient
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