Struct processing_chain::processes::JsonProcess
source · pub struct JsonProcess {
pub name: String,
pub json_items: String,
pub tmp_dir_path: Option<PathBuf>,
pub overwrite: bool,
pub items: Vec<Item>,
}
Expand description
The Process structure that parse Items from a JSON file.
Fields§
§name: String
§json_items: String
§tmp_dir_path: Option<PathBuf>
§overwrite: bool
§items: Vec<Item>
Trait Implementations§
source§impl Debug for JsonProcess
impl Debug for JsonProcess
source§impl Default for JsonProcess
impl Default for JsonProcess
source§fn default() -> JsonProcess
fn default() -> JsonProcess
Returns the “default value” for a type. Read more
source§impl ProcessingCore for JsonProcess
impl ProcessingCore for JsonProcess
Implementation of the ProcessingCore trait for JsonProcess.
source§fn set_items(&mut self) -> Result<()>
fn set_items(&mut self) -> Result<()>
Set the Items by parsing the JSON file. This method also remove input paths that do not exist.
source§fn process_items<F>(&self, f: F) -> Result<bool>where
F: Fn(&Item) -> Result<bool> + Send + Sync,
fn process_items<F>(&self, f: F) -> Result<bool>where
F: Fn(&Item) -> Result<bool> + Send + Sync,
Method that process all the Items.