deafult processes
parent
7a5704dd93
commit
0f160f4dcd
|
|
@ -40,7 +40,21 @@ pub struct Processes {
|
||||||
pub processes: Vec<TrackingProcess>,
|
pub processes: Vec<TrackingProcess>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Processes {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
date_of_creation : String::new(),
|
||||||
|
config_server : String::from("default"),
|
||||||
|
processes : Vec::new(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Processes {
|
||||||
|
pub fn is_default(&self) -> bool {
|
||||||
|
self.date_of_creation.is_empty()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// # Struct for the 2nd level in json conf file
|
/// # Struct for the 2nd level in json conf file
|
||||||
/// ## for each process to contain info, such as name, path and dependencies
|
/// ## for each process to contain info, such as name, path and dependencies
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue