.unwrap();
}
-#[derive(Debug, PartialEq)]
+#[derive(Debug, PartialEq, Default)]
pub struct DetectModbusRust {
category: Option<Flags<CodeCategory>>,
function: Option<FunctionCode>,
value: Option<Range<u16>>,
}
-impl Default for DetectModbusRust {
- fn default() -> Self {
- DetectModbusRust {
- category: None,
- function: None,
- subfunction: None,
- access_type: None,
- unit_id: None,
- address: None,
- value: None,
- }
- }
-}
-
/// Compares a range from the alert signature to the transaction's unit_id/address/value
/// range. If the signature's range intersects with the transaction, it is a match and true is
/// returned.