diff --git a/src/pihole/gravity.rs b/src/pihole/gravity.rs index bb49481..53f10c4 100644 --- a/src/pihole/gravity.rs +++ b/src/pihole/gravity.rs @@ -168,7 +168,7 @@ struct Domain { pub domain: String, pub enabled: i32, pub date_added: i64, - pub comment: String, + pub comment: Option, // a field that can be nullable } impl Restorable for DomainList { @@ -214,7 +214,7 @@ struct Ad { pub address: String, pub enabled: i32, pub date_added: i64, - pub comment: String, + pub comment: Option, } impl Restorable for AdList { @@ -350,7 +350,7 @@ struct Client { pub id: i32, pub ip: String, pub date_added: i64, - pub comment: String, + pub comment: Option, } impl Restorable for ClientList {