pub struct Entry {
pub kind: Kind,
pub line: usize,
pub user: Option<String>,
pub command: Option<String>,
pub schedule: Option<String>,
pub detail: Detail,
}Expand description
One job, setting, key, command line, library or rule.
Fields§
§kind: KindThe kind of file it’s in.
line: usizeIts line number, from 1 (the first line, when continued).
user: Option<String>The account it runs as (cron and at jobs, units’ commands,
rc.local and init scripts) or
belongs to (a home’s keys and start-up files); for a sudoers rule,
the accounts and %groups it’s granted to. None when the file
doesn’t say: a system unit without User= runs as root unless a
drop-in says otherwise.
command: Option<String>What runs: the command; for a key, its forced command
(command="…"); for ld.so.preload, the library; for a sudoers rule,
the commands allowed; for a PAM rule, the module (pam_exec.so’s
program); for an sshd setting, the command it runs, if any.
schedule: Option<String>When it runs: cron’s five fields or @reboot…, anacron’s period,
a timer’s OnCalendar=, OnBootSec=… value, as written; an at
job’s time, from its file name (2026-10-07T07:14Z, UTC).
detail: DetailWhat else the line holds.