pub struct Job {
pub name: String,
pub schedule: String,
pub command: Option<String>,
pub argv: Option<Vec<String>>,
pub env: HashMap<String, String>,
pub cwd: Option<PathBuf>,
pub enabled: bool,
}Fields§
§name: StringHuman-readable name; appears in logs.
schedule: StringWhen to run. See Schedule.
command: Option<String>Shell command to execute. Parsed with whitespace split (no quoting).
For arguments with spaces use argv instead.
argv: Option<Vec<String>>Explicit argv: ["assistant", "--brief", "--tier", "flash"]. Wins over command.
env: HashMap<String, String>Per-job environment variables. Layered on top of the daemon’s own env.
cwd: Option<PathBuf>Working directory for the spawned process. Defaults to $HOME.
enabled: boolJob is disabled if false. Default true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Job
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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