#![allow(dead_code)]
use crate::types::permissions::PermissionBehavior;
pub use crate::types::permissions::{
PermissionAllowDecision, PermissionAskDecision, PermissionDecision, PermissionDecisionReason,
PermissionDenyDecision, PermissionMetadata,
};
pub fn get_rule_behavior_description(permission_result: &str) -> &'static str {
match permission_result {
"allow" => "allowed",
"deny" => "denied",
_ => "asked for confirmation for",
}
}
pub fn behavior_to_str(behavior: PermissionBehavior) -> &'static str {
match behavior {
PermissionBehavior::Allow => "allow",
PermissionBehavior::Deny => "deny",
PermissionBehavior::Ask => "ask",
}
}