pub struct ActionPreview {Show 13 fields
pub message: String,
pub action: JobAction,
pub job: u64,
pub repository: String,
pub run: u64,
pub attempt: Option<u32>,
pub title: String,
pub scope: String,
pub notes: Vec<String>,
pub siblings: Vec<JobSummary>,
pub siblings_note: String,
pub confirm_label: String,
pub confirm: Option<String>,
}Expand description
The 409 a request without force, or with a confirm for something else, gets: what the action would do, said
before anything is sent to GitHub. Has the message of an ErrorResponse, so a client
that reads only that still gets it.
Fields§
§message: StringThe title and the scope in one line.
action: JobActionWhat would be asked.
job: u64The job it is asked from.
repository: Stringowner/name.
run: u64The job’s workflow run.
attempt: Option<u32>The run’s current attempt as GitHub said it, which a confirmation acts on; None when it could not be read,
and then there is no confirm.
title: StringCancel run 4182 (attempt 3) of halyard/ledger?
scope: StringWhat GitHub does, which is more than one job.
notes: Vec<String>What else holds now: why an earlier confirmation was not taken, the run could not be read, it completed, the job is of an earlier attempt, the repository is paused. Often none.
siblings: Vec<JobSummary>Other jobs of the run the history has, newest attempt first, at most SIBLINGS_MAX, their names, workflows
and branches cleaned of control characters and escapes. GitHub may have more: jobs on other runners, and jobs
not queued yet.
siblings_note: StringWhat siblings covers, never “all of them”.
confirm_label: StringWhat the confirming button or prompt says.
confirm: Option<String>Send it back as confirm with force=true to act, within CONFIRM_SECS and once. None when nothing
can be sent: the run could not be read, so what a confirmation would act on is unknown.
Implementations§
Source§impl ActionPreview
impl ActionPreview
Sourcepub fn new(facts: PreviewFacts) -> ActionPreview
pub fn new(facts: PreviewFacts) -> ActionPreview
The preview core words for facts.
Trait Implementations§
Source§impl Clone for ActionPreview
impl Clone for ActionPreview
Source§impl Debug for ActionPreview
impl Debug for ActionPreview
Source§impl<'de> Deserialize<'de> for ActionPreview
impl<'de> Deserialize<'de> for ActionPreview
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>,
impl Eq for ActionPreview
Source§impl PartialEq for ActionPreview
impl PartialEq for ActionPreview
Source§impl Serialize for ActionPreview
impl Serialize for ActionPreview
impl StructuralPartialEq for ActionPreview
Auto Trait Implementations§
impl Forget for ActionPreview
impl Freeze for ActionPreview
impl Move for ActionPreview
impl RefUnwindSafe for ActionPreview
impl Send for ActionPreview
impl Sync for ActionPreview
impl Unpin for ActionPreview
impl UnsafeUnpin for ActionPreview
impl UnwindSafe for ActionPreview
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
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
key and return true if they are equal.