From a95032e03385a2485aa1eaa7f726190a905ef55c Mon Sep 17 00:00:00 2001 From: Quang Luong Date: Sun, 14 Jan 2024 23:19:25 +0700 Subject: [PATCH] Make Intervention fields public --- Cargo.toml | 2 +- src/lib.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 63a39d5..9ed6829 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "modsecurity-rs" -version = "0.1.2" +version = "0.1.3" edition = "2021" authors = ["Quang Luong "] description = "Safe wrapper around libmodsecurity" diff --git a/src/lib.rs b/src/lib.rs index b387610..0d96dfa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,11 +41,11 @@ pub struct Transaction<'m, 'r> { #[allow(dead_code)] #[derive(Debug, Clone)] pub struct Intervention { - status: u16, - pause: bool, - url: String, - log: String, - disruptive: bool, + pub status: u16, + pub pause: bool, + pub url: String, + pub log: String, + pub disruptive: bool, } unsafe fn lossy_string_from_ptr(ptr: *mut i8) -> String {