pub struct ActionResult {
pub action: JobAction,
pub job: u64,
pub repository: String,
pub run: u64,
pub outcome: ActionOutcome,
pub status: Option<u16>,
pub refusal: Option<ActionRefusal>,
pub until: Option<u64>,
pub message: String,
}Expand description
POST /v1/jobs/{id}/cancel and POST /v1/jobs/{id}/rerun once GitHub was asked: how it took it. The job’s record
is not changed: GitHub’s listings bring the run’s new state and a re-run’s new jobs.
Fields§
§action: JobActionWhat was asked.
job: u64The job it was asked from.
repository: Stringowner/name.
run: u64The job’s workflow run.
outcome: ActionOutcomeHow GitHub took it.
status: Option<u16>GitHub’s HTTP status, when it answered.
refusal: Option<ActionRefusal>For a refusal, its class.
until: Option<u64>For a rate limit, when it resets, in seconds since the Unix epoch.
message: StringWhat happened, in words.
Implementations§
Source§impl ActionResult
impl ActionResult
Sourcepub fn new(
target: &ActionTarget,
answer: ActionAnswer,
now: u64,
) -> ActionResult
pub fn new( target: &ActionTarget, answer: ActionAnswer, now: u64, ) -> ActionResult
The result core words for answer to target, at now.
Trait Implementations§
Source§impl Clone for ActionResult
impl Clone for ActionResult
Source§impl Debug for ActionResult
impl Debug for ActionResult
Source§impl<'de> Deserialize<'de> for ActionResult
impl<'de> Deserialize<'de> for ActionResult
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 ActionResult
Source§impl PartialEq for ActionResult
impl PartialEq for ActionResult
Source§impl Serialize for ActionResult
impl Serialize for ActionResult
impl StructuralPartialEq for ActionResult
Auto Trait Implementations§
impl Forget for ActionResult
impl Freeze for ActionResult
impl Move for ActionResult
impl RefUnwindSafe for ActionResult
impl Send for ActionResult
impl Sync for ActionResult
impl Unpin for ActionResult
impl UnsafeUnpin for ActionResult
impl UnwindSafe for ActionResult
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.