pub struct ProviderClient { /* private fields */ }Implementations§
Source§impl ProviderClient
impl ProviderClient
pub fn new(github_token: Option<String>, codeberg_token: Option<String>) -> Self
pub async fn set_pending( &self, provider: ProviderKind, owner: &str, repo: &str, sha: &str, context: &str, ) -> Result<(), ProviderError>
pub async fn set_result( &self, provider: ProviderKind, owner: &str, repo: &str, sha: &str, context: &str, passed: bool, description: String, target_url: Option<String>, ) -> Result<(), ProviderError>
pub async fn comment_on_pr( &self, provider: ProviderKind, owner: &str, repo: &str, pr_number: u64, body: &str, ) -> Result<(), ProviderError>
pub async fn open_fix_pr( &self, provider: ProviderKind, owner: &str, repo: &str, head_branch: &str, base_branch: &str, title: &str, body: &str, ) -> Result<String, ProviderError>
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderClient
impl !UnwindSafe for ProviderClient
impl Freeze for ProviderClient
impl Send for ProviderClient
impl Sync for ProviderClient
impl Unpin for ProviderClient
impl UnsafeUnpin for ProviderClient
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