Log action

This commit is contained in:
Pascal Engélibert 2025-04-19 16:29:25 +02:00
commit 0257bdc212
2 changed files with 12 additions and 0 deletions

View file

@ -19,6 +19,16 @@ impl std::str::FromStr for Action {
}
}
impl Action {
pub fn to_str(self) -> &'static str {
match self {
Action::Allow => "Allow",
Action::Challenge => "Challenge",
Action::Drop => "Drop",
}
}
}
#[derive(Clone, Debug)]
pub struct Policy {
// Will be used when we add log