pub struct SystemAccountsBuilder { /* private fields */ }Expand description
Options for SystemAccounts; every one has a default.
Implementations§
Source§impl SystemAccountsBuilder
impl SystemAccountsBuilder
Sourcepub fn pam_service(self, service: impl Into<String>) -> Self
pub fn pam_service(self, service: impl Into<String>) -> Self
The PAM service passwords are checked under. Default DEFAULT_PAM_SERVICE.
Sourcepub fn min_uid(self, uid: u32) -> Self
pub fn min_uid(self, uid: u32) -> Self
The lowest uid admitted. Default DEFAULT_MIN_UID; 0 admits root.
Sourcepub fn groups(self, groups: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn groups(self, groups: impl IntoIterator<Item = impl Into<String>>) -> Self
The groups an account must belong to one of. Default: none, which admits any.
Sourcepub fn domain(self, domain: impl Into<String>) -> Self
pub fn domain(self, domain: impl Into<String>) -> Self
The Windows domain accounts belong to. Default DEFAULT_DOMAIN.
Trait Implementations§
Source§impl Clone for SystemAccountsBuilder
impl Clone for SystemAccountsBuilder
Source§impl Debug for SystemAccountsBuilder
impl Debug for SystemAccountsBuilder
Auto Trait Implementations§
impl Freeze for SystemAccountsBuilder
impl RefUnwindSafe for SystemAccountsBuilder
impl Send for SystemAccountsBuilder
impl Sync for SystemAccountsBuilder
impl Unpin for SystemAccountsBuilder
impl UnsafeUnpin for SystemAccountsBuilder
impl UnwindSafe for SystemAccountsBuilder
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