pub enum JobAction {
Cancel,
Rerun,
RerunFailed,
Unsupported,
}Expand description
What an owner asks GitHub to do with a job.
Variants§
Cancel
Cancel the job’s workflow run: GitHub cancels runs, not single jobs.
Rerun
Re-run the job, and with it the jobs that depend on it.
RerunFailed
Re-run the failed jobs of the job’s run, and the jobs that depend on them.
Unsupported
An action a newer daemon knows and this client does not.
Implementations§
Source§impl JobAction
impl JobAction
Sourcepub fn for_job(job: &JobSummary) -> &'static [JobAction]
pub fn for_job(job: &JobSummary) -> &'static [JobAction]
The actions a client offers on job as it stands: cancel while it is queued or runs, a re-run once it is
final, and once it failed, a re-run of its run’s failed jobs too. GitHub decides the rest; a client offers
none while Status::job_actions is not on (JobActions::offered).
Sourcepub fn confirm_label(self) -> &'static str
pub fn confirm_label(self) -> &'static str
What a confirming button or prompt says: Cancel run, Re-run job, Re-run failed jobs.
Trait Implementations§
impl Copy for JobAction
Source§impl<'de> Deserialize<'de> for JobAction
impl<'de> Deserialize<'de> for JobAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JobAction
impl StructuralPartialEq for JobAction
Auto Trait Implementations§
impl Forget for JobAction
impl Freeze for JobAction
impl Move for JobAction
impl RefUnwindSafe for JobAction
impl Send for JobAction
impl Sync for JobAction
impl Unpin for JobAction
impl UnsafeUnpin for JobAction
impl UnwindSafe for JobAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.