pub fn grant_default_collection_access<N>(
        &self,
        username: N,
        permission: Permission,
    ) -> Result<Empty>
    where
        N: Into<String>,
    {
        self.execute(SetCollectionAccessLevel::new(
            username.into(),
            "*".into(),
            "*".into(),
            permission,
        ))
    }
/// Sets the default access level for collections for the given user.
///
/// The user set in the `Connector` must have permission to write to the
/// system database in order to execute this method.
///
/// # Arguments
///
/// * `username` : the name of the user for which to grant default access
/// * `permission` : the access level to grant
Sets the default access level for collections for the given user.
The user set in the `Connector` must have permission to write to the
system database in order to execute this method.
Sets the default access level for collections for the given user . The user set in the ` Connector ` must have permission to write to the system database in order to execute this method .
pub fn grant_default_collection_access<N>(
        &self,
        username: N,
        permission: Permission,
    ) -> Result<Empty>
    where
        N: Into<String>,
    {
        self.execute(SetCollectionAccessLevel::new(
            username.into(),
            "*".into(),
            "*".into(),
            permission,
        ))
    }
pub fn grant_default_collection_access < N > ( & self , username : N , permission : Permission , ) -> Result < Empty > where N : Into < String > , { self . execute ( SetCollectionAccessLevel :: new ( username . into ( ) , " " . into ( ) , " " . into ( ) , permission , ) ) }
Sets the default access level for collections for the given user.
Sets the default access level for collections for the given user .
&self
username
N
permission
Permission
&self
username
N
permission
Permission