fn is_self(scope_type: &str, scope: &Option<String>) -> Result<bool, String> {
    match scope {
        &None => Ok(true),
        &Some(ref scope_str) => {
            match scope_str as &str {
                "self" => Ok(true),
                "admin" => Ok(true),
                _ => Err(format!("Auth Config Error: '{}' must be one of 'self', 'admin', or null", scope_type)),
            }
        }
    }
}
///
/// Allows a category to be null, self, or admin
///
/// This category is used for CRUD operations against data for a specfic user,
/// not only must the user be logged in but the user can only update their own
/// data
///
Allows a category to be null, self, or admin
This category is used for CRUD operations against data for a specfic user,
not only must the user be logged in but the user can only update their own
data
Allows a category to be null self or admin This category is used for CRUD operations against data for a specfic user not only must the user be logged in but the user can only update their own data
fn is_self(scope_type: &str, scope: &Option<String>) -> Result<bool, String> {
    match scope {
        &None => Ok(true),
        &Some(ref scope_str) => {
            match scope_str as &str {
                "self" => Ok(true),
                "admin" => Ok(true),
                _ => Err(format!("Auth Config Error: '{}' must be one of 'self', 'admin', or null", scope_type)),
            }
        }
    }
}
fn is_self ( scope_type : & str , scope : & Option < String > ) -> Result < bool , String > { match scope { & None => Ok ( true ) , & Some ( ref scope_str ) => { match scope_str as & str { " " => Ok ( true ) , " " => Ok ( true ) , _ => Err ( format ! ( " " scope_type ) ) , } } } }
Allows a category to be null, self, or admin
This category is used for CRUD operations against data for a specfic user,
not only must the user be logged in but the user can only update their own
data
Allows a category to be null self or admin This category is used for CRUD operations against data for a specfic user not only must the user be logged in but the user can only update their own data
scope_type
&str
scope
&Option<String>
scope_type
&str
scope
&Option<String>