Skip to main content

SystemAccountsConfigSetters

Trait SystemAccountsConfigSetters 

Source
pub trait SystemAccountsConfigSetters: Holds<SystemAccountsConfig> + Sized {
    // Required methods
    fn pam_service(self, value: impl Into<String>) -> Self;
    fn min_uid(self, value: u32) -> Self;
    fn groups(self, value: impl Into<Vec<String>>) -> Self;
    fn domain(self, value: impl Into<String>) -> Self;
}
Expand description

The typed setters of SystemAccountsConfig, for any builder that holds its settings.

Required Methods§

Source

fn pam_service(self, value: impl Into<String>) -> Self

The 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.

Source

fn min_uid(self, value: u32) -> Self

The lowest uid admitted (Unix). 0 admits root.

Source

fn groups(self, value: impl Into<Vec<String>>) -> Self

The groups an account must belong to one of; empty admits any.

Source

fn domain(self, value: impl Into<String>) -> Self

The Windows domain accounts belong to; . is the machine’s own accounts.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<__B> SystemAccountsConfigSetters for __B
where __B: Holds<SystemAccountsConfig>,