aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-11-29 14:25:47 +0100
committerMax Audron <audron@cocaine.farm>2021-11-29 14:27:09 +0100
commit8ee094fea3425978bfdd8cfd51881bc393991eea (patch)
treeefa2cf892a22f0f0e08c7dc2b82802d26dfc2ea4 /src
parentadd BufferViewConfig implementation (diff)
add HighlightRuleManager sync implementations
Diffstat (limited to '')
-rw-r--r--src/message/signalproxy/objects/highlightrulemanager.rs23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/message/signalproxy/objects/highlightrulemanager.rs b/src/message/signalproxy/objects/highlightrulemanager.rs
index ef64a2c..7fb585e 100644
--- a/src/message/signalproxy/objects/highlightrulemanager.rs
+++ b/src/message/signalproxy/objects/highlightrulemanager.rs
@@ -1,11 +1,18 @@
+use num_derive::{FromPrimitive, ToPrimitive};
+use num_traits::{FromPrimitive, ToPrimitive};
+
use libquassel_derive::{NetworkList, NetworkMap};
use crate::message::signalproxy::translation::{Network, NetworkMap};
-use num_derive::{FromPrimitive, ToPrimitive};
-use num_traits::{FromPrimitive, ToPrimitive};
+#[allow(unused_imports)]
+use crate::message::StatefulSyncableClient;
+#[allow(unused_imports)]
+use crate::message::StatefulSyncableServer;
-#[derive(Debug, Clone, PartialEq, NetworkList)]
+use crate::message::{SyncProxy, Syncable};
+
+#[derive(Debug, Clone, PartialEq, NetworkList, NetworkMap)]
pub struct HighlightRuleManager {
#[network(rename = "HighlightRuleList", variant = "VariantMap", network, map)]
highlight_rule_list: Vec<HighlightRule>,
@@ -15,6 +22,16 @@ pub struct HighlightRuleManager {
nicks_case_sensitive: bool,
}
+#[cfg(feature = "client")]
+impl StatefulSyncableClient for HighlightRuleManager {}
+
+#[cfg(feature = "server")]
+impl StatefulSyncableServer for HighlightRuleManager {}
+
+impl Syncable for HighlightRuleManager {
+ const CLASS: &'static str = "HighlightRuleManager";
+}
+
#[derive(Debug, Clone, PartialEq, NetworkMap)]
#[network(repr = "maplist")]
pub struct HighlightRule {
letions'>-691/+1659 2024-08-12add nix build and moduleMax Audron-5/+427 2022-02-19remove jsonnet lock fileMax Audron-36/+0 2022-02-19fix deploy to work with gitlab agentMax Audron-4/+4 2021-10-22write tons of documentation and reorganize some modulesMax Audron-65/+300 2021-10-22remove wolfram alpha url shorteningMax Audron-1/+2 2021-10-20remove failing wolfram alpha test casesMax Audron-105/+55 2021-10-20bump version to 1.6.2Max Audron-3/+2 2021-10-20prepare for release on crates.ioMax Audron-39/+65 2021-10-20add async docs to macro crate and bump versionMax Audron-9/+10 2021-10-20change hook errors to be logged as warningsMax Audron-3/+3 2021-10-20fix configuration not loading correctly on release buildsMax Audron-8/+23 2021-10-19replace sedregex crate8-rework-sedMax Audron-20/+358 2021-10-19add formatting trait for irc codesMax Audron-0/+129 2021-10-17fix links in readmeMax Audron-2/+2