#[non_exhaustive]pub struct SystemAccountsConfig {
pub pam_service: String,
pub min_uid: u32,
pub groups: Vec<String>,
pub domain: String,
}Expand description
Options of SystemAccounts, as a host’s configuration holds them. Every key is optional.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pam_service: StringThe PAM service a password is checked under (Unix). With no file of that name in
/etc/pam.d, Linux-PAM uses other, which refuses everyone on most distributions.
min_uid: u32The lowest uid admitted (Unix). 0 admits root.
groups: Vec<String>The groups an account must belong to one of; empty admits any.
domain: StringThe Windows domain accounts belong to; . is the machine’s own accounts.
Implementations§
Source§impl SystemAccountsConfig
impl SystemAccountsConfig
Sourcepub fn non_defaults(&self) -> Vec<NonDefault>
pub fn non_defaults(&self) -> Vec<NonDefault>
What these options admit beyond the defaults, on this platform. Empty with the defaults.
Trait Implementations§
Source§impl Clone for SystemAccountsConfig
impl Clone for SystemAccountsConfig
Source§impl Debug for SystemAccountsConfig
impl Debug for SystemAccountsConfig
Source§impl Default for SystemAccountsConfig
impl Default for SystemAccountsConfig
Source§impl Describe for SystemAccountsConfig
impl Describe for SystemAccountsConfig
impl Eq for SystemAccountsConfig
impl Fields for SystemAccountsConfig
Source§impl Inspect for SystemAccountsConfig
impl Inspect for SystemAccountsConfig
Source§impl PartialEq for SystemAccountsConfig
impl PartialEq for SystemAccountsConfig
impl StructuralPartialEq for SystemAccountsConfig
Source§impl TryFrom<SystemAccountsConfig> for SystemAccounts
impl TryFrom<SystemAccountsConfig> for SystemAccounts
Auto Trait Implementations§
impl Freeze for SystemAccountsConfig
impl RefUnwindSafe for SystemAccountsConfig
impl Send for SystemAccountsConfig
impl Sync for SystemAccountsConfig
impl Unpin for SystemAccountsConfig
impl UnsafeUnpin for SystemAccountsConfig
impl UnwindSafe for SystemAccountsConfig
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