#[non_exhaustive]pub struct WorkflowRun {
pub database_id: u64,
pub name: String,
pub display_title: String,
pub status: String,
pub conclusion: String,
pub workflow_name: String,
pub head_branch: String,
pub event: String,
pub url: String,
pub created_at: String,
}Expand description
A GitHub Actions workflow run (gh run list/view --json …).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.database_id: u64The run id (databaseId) — the <run-id> other gh run commands take.
name: StringWorkflow name as shown in the runs list.
display_title: StringThe run’s display title (usually the commit subject).
status: StringLifecycle status, e.g. "queued", "in_progress", "completed".
conclusion: StringOutcome, e.g. "success", "failure", "cancelled", "skipped" —
gh reports an empty string until the run completes (not null).
workflow_name: StringName of the workflow that produced the run.
head_branch: StringBranch the run was triggered for.
event: StringTriggering event, e.g. "push", "workflow_dispatch".
url: StringWeb URL.
created_at: StringCreation timestamp (ISO 8601).
Trait Implementations§
Source§impl Clone for WorkflowRun
impl Clone for WorkflowRun
Source§fn clone(&self) -> WorkflowRun
fn clone(&self) -> WorkflowRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowRun
impl Debug for WorkflowRun
Source§impl<'de> Deserialize<'de> for WorkflowRun
impl<'de> Deserialize<'de> for WorkflowRun
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 WorkflowRun
Source§impl PartialEq for WorkflowRun
impl PartialEq for WorkflowRun
Source§fn eq(&self, other: &WorkflowRun) -> bool
fn eq(&self, other: &WorkflowRun) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkflowRun
Auto Trait Implementations§
impl Freeze for WorkflowRun
impl RefUnwindSafe for WorkflowRun
impl Send for WorkflowRun
impl Sync for WorkflowRun
impl Unpin for WorkflowRun
impl UnsafeUnpin for WorkflowRun
impl UnwindSafe for WorkflowRun
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