pub fn create_group(&mut self, group: &str) -> Result<()> {
        if self.settings.daemon.groups.get(group).is_none() {
            self.settings.daemon.groups.insert(group.into(), 1);
        }
        if self.groups.get(group).is_none() {
            self.groups.insert(group.into(), true);
        }

        self.save();
        self.settings.save()
    }
/// Check if the given group already exists.
/// If it doesn't exist yet, create a state entry and a new settings entry.
Check if the given group already exists.
If it doesn't exist yet, create a state entry and a new settings entry.
Check if the given group already exists . If it doesn ' t exist yet create a state entry and a new settings entry .
pub fn create_group(&mut self, group: &str) -> Result<()> {
        if self.settings.daemon.groups.get(group).is_none() {
            self.settings.daemon.groups.insert(group.into(), 1);
        }
        if self.groups.get(group).is_none() {
            self.groups.insert(group.into(), true);
        }
        self.save();
        self.settings.save()
    }
pub fn create_group ( & mut self , group : & str ) -> Result < ( ) > { if self . settings . daemon . groups . get ( group ) . is_none ( ) { self . settings . daemon . groups . insert ( group . into ( ) , 1 ) ; } if self . groups . get ( group ) . is_none ( ) { self . groups . insert ( group . into ( ) , true ) ; } self . save ( ) ; self . settings . save ( ) }
Check if the given group already exists.
Check if the given group already exists .
&mut self
group
&str