aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/objects/bufferviewconfig.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-12-20 13:13:00 +0100
committerMax Audron <audron@cocaine.farm>2023-12-20 13:13:00 +0100
commite6980211c4c53fc1eeb686cd12363a8fa603daa3 (patch)
tree2c248fc32d258dea722dbbefd7ab5465954e2ebc /src/message/signalproxy/objects/bufferviewconfig.rs
parentuse VariantMap as target for generic NetworkMap for HashMap impl (diff)
rework Network derives to be more consistent
i don't even know anymore, blame past me
Diffstat (limited to '')
-rw-r--r--src/message/signalproxy/objects/bufferviewconfig.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/message/signalproxy/objects/bufferviewconfig.rs b/src/message/signalproxy/objects/bufferviewconfig.rs
index cdca0dc..bc60768 100644
--- a/src/message/signalproxy/objects/bufferviewconfig.rs
+++ b/src/message/signalproxy/objects/bufferviewconfig.rs
@@ -1,23 +1,25 @@
use libquassel_derive::sync;
use libquassel_derive::{NetworkList, NetworkMap};
-use crate::message::signalproxy::translation::Network;
-
#[allow(unused_imports)]
use crate::message::StatefulSyncableClient;
#[allow(unused_imports)]
use crate::message::StatefulSyncableServer;
-use crate::message::{Syncable, Class};
+use crate::message::{Class, Syncable};
use crate::primitive::VariantList;
#[derive(Debug, Default, Clone, PartialEq, NetworkList, NetworkMap)]
pub struct BufferViewConfig {
- #[network(rename = "BufferList", network, variant = "VariantList")]
+ #[network(rename = "BufferList", network = "map", variant = "VariantList")]
pub buffers: Vec<i32>,
- #[network(rename = "RemovedBuffers", network, variant = "VariantList")]
+ #[network(rename = "RemovedBuffers", network = "map", variant = "VariantList")]
pub removed_buffers: Vec<i32>,
- #[network(rename = "TemporarilyRemovedBuffers", network, variant = "VariantList")]
+ #[network(
+ rename = "TemporarilyRemovedBuffers",
+ network = "map",
+ variant = "VariantList"
+ )]
pub temporarily_removed_buffers: Vec<i32>,
#[network(rename = "bufferViewId", default, skip)]