pub struct Process {
pub name: String,
pub inputs_dir_path: PathBuf,
pub inputs_extenion: String,
pub outputs_dir_path: PathBuf,
pub tmp_dir_path: Option<PathBuf>,
pub overwrite: bool,
pub items: Vec<Item>,
}Expand description
The Process structure that assume single input/output paths for each Item.
Fields§
§name: String§inputs_dir_path: PathBuf§inputs_extenion: String§outputs_dir_path: PathBuf§tmp_dir_path: Option<PathBuf>§overwrite: bool§items: Vec<Item>Trait Implementations§
Source§impl ProcessingCore for Process
impl ProcessingCore for Process
fn set_items(&mut self) -> Result<()>
fn check_all_inputs_exist(&self) -> Result<bool>
fn check_tmp_dir_exist(&self) -> Result<bool>
fn create_tmp_directory(&self) -> Result<()>
fn process_items<F>(&self, f: F) -> Result<bool>
fn move_files(&self) -> Result<bool>
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnsafeUnpin for Process
impl UnwindSafe for Process
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more