Skip to content
Snippets Groups Projects
user.rs 465 B
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct UserConfig {
    pub password: Option<String>,
    pub uid: Option<u32>,
    pub gid: Option<u32>,
    pub name: Option<String>,
    pub home: Option<String>,
    pub shell: Option<String>,
}

#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct GroupConfig {
    pub gid: Option<u32>,
    // FIXME move this to the UserConfig struct as extra_groups
    pub members: Vec<String>,
}