pub struct GitHub { /* private fields */ }Trait Implementations§
Source§impl VersionControl for GitHub
impl VersionControl for GitHub
fn init( hostname: String, repo: String, settings: VersionControlSettings, ) -> Self
fn login_url(&self) -> String
fn validate_token(&self, token: &str) -> Result<()>
fn create_pr(&self, pr: CreatePullRequest) -> Result<PullRequest>
fn get_pr_by_id(&self, id: u32) -> Result<PullRequest>
fn get_pr_by_branch(&self, branch: &str) -> Result<PullRequest>
fn list_prs(&self, filters: ListPullRequestFilters) -> Result<Vec<PullRequest>>
fn approve_pr(&self, id: u32) -> Result<()>
fn close_pr(&self, id: u32) -> Result<PullRequest>
fn merge_pr(&self, id: u32, _: bool) -> Result<PullRequest>
fn get_repository(&self) -> Result<Repository>
fn create_repository(&self, repo: CreateRepository) -> Result<Repository>
fn fork_repository(&self, repo: ForkRepository) -> Result<Repository>
fn delete_repository(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for GitHub
impl !RefUnwindSafe for GitHub
impl Send for GitHub
impl Sync for GitHub
impl Unpin for GitHub
impl !UnwindSafe for GitHub
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