Skip to main content

ActionsApi

Trait ActionsApi 

Source
pub trait ActionsApi {
Show 18 methods // Required methods fn actions_workflows( &self, login: &str, repo: &str, ) -> Result<Page<Workflow>, Error>; fn actions_runs( &self, login: &str, repo: &str, filters: &RunFilters, ) -> Result<Page<WorkflowRun>, Error>; fn actions_run( &self, login: &str, repo: &str, run_id: u64, ) -> Result<WorkflowRun, Error>; fn actions_jobs( &self, login: &str, repo: &str, run_id: u64, ) -> Result<Page<Job>, Error>; fn actions_job_log( &self, login: &str, repo: &str, job_id: u64, ) -> Result<JobLog, Error>; fn actions_workflow_definition( &self, login: &str, repo: &str, sha: &str, path: &str, ) -> Result<Definition<WorkflowDefinition>, Error>; fn actions_pending_deployments( &self, login: &str, repo: &str, run_id: u64, ) -> Result<Vec<PendingDeployment>, Error>; fn actions_environments( &self, login: &str, repo: &str, ) -> Result<Page<Environment>, Error>; fn actions_deployments( &self, login: &str, repo: &str, environment: Option<&str>, ) -> Result<Page<Deployment>, Error>; fn actions_releases( &self, login: &str, repo: &str, ) -> Result<Page<Release>, Error>; fn actions_tags( &self, login: &str, repo: &str, ) -> Result<Page<TagRef>, Error>; fn dispatch_workflow( &self, login: &str, request: &DispatchRequest<'_>, ) -> Result<(), Error>; fn rerun_workflow( &self, login: &str, repo: &str, run_id: u64, ) -> Result<(), Error>; fn rerun_failed_jobs( &self, login: &str, repo: &str, run_id: u64, ) -> Result<(), Error>; fn cancel_workflow( &self, login: &str, repo: &str, run_id: u64, ) -> Result<(), Error>; fn review_pending_deployments( &self, login: &str, request: &ReviewPendingRequest<'_>, ) -> Result<(), Error>; // Provided methods fn actions_attempt_jobs( &self, login: &str, repo: &str, run_id: u64, attempt: u64, ) -> Result<Page<Job>, Error> { ... } fn actions_latest_deployment( &self, login: &str, repo: &str, environment: &str, ) -> Result<Option<Deployment>, Error> { ... }
}
Expand description

GitHub Actions operations using the shared client’s credentials and transport.

Required Methods§

Source

fn actions_workflows( &self, login: &str, repo: &str, ) -> Result<Page<Workflow>, Error>

Source

fn actions_runs( &self, login: &str, repo: &str, filters: &RunFilters, ) -> Result<Page<WorkflowRun>, Error>

Source

fn actions_run( &self, login: &str, repo: &str, run_id: u64, ) -> Result<WorkflowRun, Error>

Source

fn actions_jobs( &self, login: &str, repo: &str, run_id: u64, ) -> Result<Page<Job>, Error>

Source

fn actions_job_log( &self, login: &str, repo: &str, job_id: u64, ) -> Result<JobLog, Error>

Source

fn actions_workflow_definition( &self, login: &str, repo: &str, sha: &str, path: &str, ) -> Result<Definition<WorkflowDefinition>, Error>

Source

fn actions_pending_deployments( &self, login: &str, repo: &str, run_id: u64, ) -> Result<Vec<PendingDeployment>, Error>

Source

fn actions_environments( &self, login: &str, repo: &str, ) -> Result<Page<Environment>, Error>

Source

fn actions_deployments( &self, login: &str, repo: &str, environment: Option<&str>, ) -> Result<Page<Deployment>, Error>

Source

fn actions_releases( &self, login: &str, repo: &str, ) -> Result<Page<Release>, Error>

Source

fn actions_tags(&self, login: &str, repo: &str) -> Result<Page<TagRef>, Error>

Source

fn dispatch_workflow( &self, login: &str, request: &DispatchRequest<'_>, ) -> Result<(), Error>

Source

fn rerun_workflow( &self, login: &str, repo: &str, run_id: u64, ) -> Result<(), Error>

Source

fn rerun_failed_jobs( &self, login: &str, repo: &str, run_id: u64, ) -> Result<(), Error>

Source

fn cancel_workflow( &self, login: &str, repo: &str, run_id: u64, ) -> Result<(), Error>

Source

fn review_pending_deployments( &self, login: &str, request: &ReviewPendingRequest<'_>, ) -> Result<(), Error>

Provided Methods§

Source

fn actions_attempt_jobs( &self, login: &str, repo: &str, run_id: u64, attempt: u64, ) -> Result<Page<Job>, Error>

The jobs of attempt attempt of run run_id. A re-run is a new attempt with jobs of its own, so a caller that read one attempt’s run asks for that attempt’s jobs, not whichever attempt is newest by the time the read lands. Attempt 0, which a run without run_attempt maps to, reads the run’s latest jobs.

The default, for an implementation that cannot read one attempt, reads the latest jobs for attempt 0 and fails with HTTP 501 (Not Implemented) for any other, rather than answer for one attempt with another’s jobs.

Source

fn actions_latest_deployment( &self, login: &str, repo: &str, environment: &str, ) -> Result<Option<Deployment>, Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§