pub struct JobSpec {Show 13 fields
pub id: String,
pub name: Option<String>,
pub description: Option<String>,
pub mode: JobMode,
pub scan: ScanSpec,
pub save_sotc_at: Option<String>,
pub title_sotc: Option<String>,
pub save_cots_at: Option<String>,
pub title_cots: Option<String>,
pub quiet_work: bool,
pub hide_stats: bool,
pub hide_promo: bool,
pub table: TabSpec,
}Fields§
§id: String§name: Option<String>§description: Option<String>§mode: JobMode§scan: ScanSpec§save_sotc_at: Option<String>§title_sotc: Option<String>§save_cots_at: Option<String>§title_cots: Option<String>§quiet_work: bool§hide_stats: bool§hide_promo: bool§table: TabSpecImplementations§
Source§impl JobSpec
impl JobSpec
pub fn new(id: impl Into<String>) -> Self
pub fn from_config(cfg: &ConfigJob) -> Result<Self, String>
pub fn work_path(self, path: impl Into<String>) -> Self
pub fn patterns(self, pats: Vec<&str>) -> Self
pub fn ignore_case(self, ignore: bool) -> Self
pub fn scan(self, scan_spec: ScanSpec) -> Self
pub fn mode(self, mode: JobMode) -> Self
pub fn quiet(self, quiet: bool) -> Self
pub fn hide_stats(self, hide: bool) -> Self
pub fn hide_promo(self, hide: bool) -> Self
pub fn trim(self, size: usize, page: Option<usize>) -> Self
pub fn table(self, tab_spec: TabSpec) -> Self
Trait Implementations§
impl Eq for JobSpec
impl StructuralPartialEq for JobSpec
Auto Trait Implementations§
impl Freeze for JobSpec
impl RefUnwindSafe for JobSpec
impl Send for JobSpec
impl Sync for JobSpec
impl Unpin for JobSpec
impl UnsafeUnpin for JobSpec
impl UnwindSafe for JobSpec
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