diff --git a/src/expr.rs b/src/expr.rs index c6895ef..ffe5c58 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -351,14 +351,21 @@ pub enum Verdict { Goto(String), } +#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)] +/// Explicitly set element object. +pub struct ElemCounter { + pub packets: u32, + pub bytes: u32, +} + #[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)] #[serde(rename = "elem")] /// Explicitly set element object. pub struct Elem { pub val: Box, - pub timeout: u32, - pub expires: u32, - pub comment: String, + pub timeout: Option, + pub expires: Option, + pub comment: Option, pub counter: Option, }