fn is_auth(scope_type: &str, scope: &Option<String>) -> Result<bool, String> {
    match scope {
        &None => Ok(true),
        &Some(ref scope_str) => {
            match scope_str as &str {
                "user" => 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, user, or admin
///
/// This category is used primarily for feature operations. The user must be
/// logged in but can make changes to any feature, including features created
/// by another user
///
Allows a category to be null, user, or admin
This category is used primarily for feature operations. The user must be
logged in but can make changes to any feature, including features created
by another user
Allows a category to be null user or admin This category is used primarily for feature operations . The user must be logged in but can make changes to any feature including features created by another user
fn is_auth(scope_type: &str, scope: &Option<String>) -> Result<bool, String> {
    match scope {
        &None => Ok(true),
        &Some(ref scope_str) => {
            match scope_str as &str {
                "user" => Ok(true),
                "admin" => Ok(true),
                _ => Err(format!("Auth Config Error: '{}' must be one of 'self', 'admin', or null", scope_type)),
            }
        }
    }
}
fn is_auth ( 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, user, or admin
This category is used primarily for feature operations.
Allows a category to be null user or admin This category is used primarily for feature operations .
scope_type
&str
scope
&Option<String>
scope_type
&str
scope
&Option<String>