pub struct NacmGroup {
pub name: String,
pub users: Vec<String>,
pub gid: Option<i32>,
}Expand description
NACM Group definition
Represents a named group of users. Groups are used to organize users and apply rule lists to multiple users at once.
§Fields
name- Group identifier (e.g., “admin”, “operators”)users- List of usernames belonging to this groupgid- Optional numerical group ID for OS integration (Tail-f extension)
§Examples
use nacm_validator::NacmGroup;
let admin_group = NacmGroup {
name: "admin".to_string(),
users: vec!["alice".to_string(), "bob".to_string()],
gid: Some(1000),
};Fields§
§name: StringName of the group
users: Vec<String>List of usernames in this group
gid: Option<i32>Optional numerical group ID for OS integration (Tail-f extension)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NacmGroup
impl RefUnwindSafe for NacmGroup
impl Send for NacmGroup
impl Sync for NacmGroup
impl Unpin for NacmGroup
impl UnwindSafe for NacmGroup
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