pub enum WorkflowSource {
Directory(PathBuf),
Zip {
_temp_dir: TempDir,
extract_dir: PathBuf,
},
}Expand description
Tracks where a workflow’s associated files live.
For plain .zwf files, this is the parent directory. For .zwfz zip
archives, this is a temp directory containing the extracted contents.
Dropping the Zip variant cleans up the temp directory.
Variants§
Directory(PathBuf)
Plain TOML file on disk — resolve paths relative to this directory.
Zip
Extracted zip archive — temp dir is cleaned up on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkflowSource
impl RefUnwindSafe for WorkflowSource
impl Send for WorkflowSource
impl Sync for WorkflowSource
impl Unpin for WorkflowSource
impl UnsafeUnpin for WorkflowSource
impl UnwindSafe for WorkflowSource
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