pub struct GitHubClient { /* private fields */ }Implementations§
Source§impl GitHubClient
impl GitHubClient
pub fn new(token: String) -> Result<Self>
pub async fn get_pr_status( &self, owner: &str, repo: &str, pr_number: u64, ) -> Result<PrStatus>
pub async fn get_ci_checks( &self, owner: &str, repo: &str, head_sha: &str, ) -> Result<Vec<CheckRun>>
pub async fn get_review_threads( &self, owner: &str, repo: &str, pr_number: u64, ) -> Result<Vec<ReviewThread>>
Trait Implementations§
Source§impl Clone for GitHubClient
impl Clone for GitHubClient
Source§fn clone(&self) -> GitHubClient
fn clone(&self) -> GitHubClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for GitHubClient
impl !UnwindSafe for GitHubClient
impl Freeze for GitHubClient
impl Send for GitHubClient
impl Sync for GitHubClient
impl Unpin for GitHubClient
impl UnsafeUnpin 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