use rustables_macros::nfnetlink_struct;
use super::Expression;
use crate::sys;
#[derive(Default, Clone, Debug, PartialEq, Eq)]
#[nfnetlink_struct]
pub struct Counter {
#[field(sys::NFTA_COUNTER_BYTES)]
pub nb_bytes: u64,
#[field(sys::NFTA_COUNTER_PACKETS)]
pub nb_packets: u64,
}
impl Expression for Counter {
fn get_name() -> &'static str {
"counter"
}
}