pub struct Workflow {
pub path: PathBuf,
pub on_line: Option<usize>,
pub has_pull_request: bool,
pub has_pull_request_target: bool,
pub cancel_in_progress: bool,
pub concurrency_line: Option<usize>,
pub jobs: Vec<Job>,
pub duplicate_keys: Vec<DuplicateKey>,
}Expand description
One workflow file.
Line numbers are 1-based positions of keys in the file.
Fields§
§path: PathBuf§on_line: Option<usize>Line of the top-level on: key, when present.
has_pull_request: bool§has_pull_request_target: boolpull_request_target is present under on:.
cancel_in_progress: boolTop-level concurrency.cancel-in-progress cancels in-progress runs.
Literal true and github.event_name == 'pull_request' both count.
concurrency_line: Option<usize>Line of the top-level concurrency: key. The key match ignores ASCII case.
jobs: Vec<Job>§duplicate_keys: Vec<DuplicateKey>Repeated mapping keys, in document order. The later value won.
Trait Implementations§
impl Eq for Workflow
impl StructuralPartialEq for Workflow
Auto Trait Implementations§
impl Freeze for Workflow
impl RefUnwindSafe for Workflow
impl Send for Workflow
impl Sync for Workflow
impl Unpin for Workflow
impl UnsafeUnpin for Workflow
impl UnwindSafe for Workflow
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