pub struct WorkflowRun {Show 22 fields
pub id: String,
pub workflow_name: String,
pub parent_run_id: String,
pub status: WorkflowRunStatus,
pub dry_run: bool,
pub trigger: String,
pub started_at: String,
pub ended_at: Option<String>,
pub result_summary: Option<String>,
pub error: Option<String>,
pub definition_snapshot: Option<String>,
pub inputs: HashMap<String, String>,
pub parent_workflow_run_id: Option<String>,
pub iteration: i64,
pub blocked_on: Option<BlockedOn>,
pub workflow_title: Option<String>,
pub total_duration_ms: Option<i64>,
pub dismissed: bool,
pub extensions: Extensions,
pub owner_token: Option<String>,
pub lease_until: Option<String>,
pub generation: i64,
}Expand description
A workflow run record from the database.
Fields§
§id: String§workflow_name: String§parent_run_id: String§status: WorkflowRunStatus§dry_run: bool§trigger: String§started_at: String§ended_at: Option<String>§result_summary: Option<String>§error: Option<String>§definition_snapshot: Option<String>§inputs: HashMap<String, String>§parent_workflow_run_id: Option<String>§iteration: i64§blocked_on: Option<BlockedOn>§workflow_title: Option<String>§total_duration_ms: Option<i64>§dismissed: bool§extensions: Extensions§owner_token: Option<String>§lease_until: Option<String>§generation: i64Implementations§
Source§impl WorkflowRun
impl WorkflowRun
Sourcepub fn is_triggered_by_hook(&self) -> bool
pub fn is_triggered_by_hook(&self) -> bool
Whether this run was triggered by a workflow hook (prevents infinite chains).
Sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Returns the human-readable display name for this run.
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
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