Log action
This commit is contained in:
parent
f38ed373b8
commit
0257bdc212
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue