Users

Struct Manager_type

Source
pub struct Manager_type(/* private fields */);

Implementations§

Source§

impl Manager_type

Source

pub fn Get_new_group_identifier(&self) -> Result_type<Group_identifier_type>

Source

pub fn Get_new_user_identifier(&self) -> Result_type<User_identifier_type>

Source

pub fn Add_user( &self, Identifier: User_identifier_type, Name: &str, Primary_group: Group_identifier_type, ) -> Result_type<()>

Source

pub fn Add_group( &self, Identifier: Group_identifier_type, Name: &str, Users: &[User_identifier_type], ) -> Result_type<()>

Source

pub fn Is_root(Identifier: User_identifier_type) -> bool

Source

pub fn Is_in_group( &self, User_identifier: User_identifier_type, Group_identifier: Group_identifier_type, ) -> bool

Source

pub fn Get_user_groups( &self, Identifier: User_identifier_type, ) -> Result_type<BTreeSet<Group_identifier_type>>

Source

pub fn Exists_group( &self, Identifier: Group_identifier_type, ) -> Result_type<bool>

Source

pub fn Exists_user(&self, Identifier: User_identifier_type) -> Result_type<bool>

Source

pub fn Add_to_group( &self, User_identifier: User_identifier_type, Group_identifier: Group_identifier_type, ) -> Result_type<()>

Source

pub fn Get_group_name( &self, Identifier: Group_identifier_type, ) -> Result_type<String>

Source

pub fn Get_user_identifier( &self, Name: &str, ) -> Result_type<User_identifier_type>

Source

pub fn Get_group_users( &self, Identifier: Group_identifier_type, ) -> Result_type<Vec<User_identifier_type>>

Source

pub fn Get_user_name( &self, Identifier: User_identifier_type, ) -> Result_type<String>

Source

pub fn Get_user_primary_group( &self, Identifier: User_identifier_type, ) -> Result_type<Group_identifier_type>

Source

pub fn Check_credentials(&self, _User_name: &str, _Password: &str) -> bool

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.