pub struct CreateUserOptions {
pub no_login: bool,
pub home_dir: Option<String>,
}Expand description
Options for creating a user
Fields§
§no_login: boolIf true, create user with nologin shell
home_dir: Option<String>Home directory (default: /home/username)
Trait Implementations§
Source§impl Debug for CreateUserOptions
impl Debug for CreateUserOptions
Source§impl Default for CreateUserOptions
impl Default for CreateUserOptions
Source§fn default() -> CreateUserOptions
fn default() -> CreateUserOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateUserOptions
impl RefUnwindSafe for CreateUserOptions
impl Send for CreateUserOptions
impl Sync for CreateUserOptions
impl Unpin for CreateUserOptions
impl UnsafeUnpin for CreateUserOptions
impl UnwindSafe for CreateUserOptions
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