pub struct SudoRule {
pub users: Vec<String>,
pub hosts: Vec<String>,
pub run_as: Option<String>,
pub tags: Vec<String>,
pub commands: Vec<String>,
}Expand description
A sudoers rule: users hosts = (run-as) TAGS: commands.
Fields§
§users: Vec<String>Accounts, %groups, #uids and aliases it’s granted to.
hosts: Vec<String>Hosts it applies on (ALL).
run_as: Option<String>Whom the commands may run as, inside the parentheses
(ALL:ALL); None when not written: root.
Tags and options (NOPASSWD, SETENV, CWD=/), for every command
they’re written before.
commands: Vec<String>The commands, aliases or ALL.
Trait Implementations§
impl Eq for SudoRule
impl StructuralPartialEq for SudoRule
Auto Trait Implementations§
impl Freeze for SudoRule
impl RefUnwindSafe for SudoRule
impl Send for SudoRule
impl Sync for SudoRule
impl Unpin for SudoRule
impl UnsafeUnpin for SudoRule
impl UnwindSafe for SudoRule
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