diff options
| author | Max Audron <audron@cocaine.farm> | 2021-11-29 14:12:32 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-11-29 14:12:32 +0100 |
| commit | b7943a03d4cd1b746d73edac244bb65223239e8c (patch) | |
| tree | 4f5987fb51afdf79a11619847077f9bc0459fc30 /src/message/signalproxy | |
| parent | remove no longer needed feature flag so we can compile on rust stable (diff) | |
add NetworkMap derive for bufferview
Diffstat (limited to 'src/message/signalproxy')
| -rw-r--r-- | src/message/signalproxy/objects/bufferview.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/message/signalproxy/objects/bufferview.rs b/src/message/signalproxy/objects/bufferview.rs index 5ac608c..b522004 100644 --- a/src/message/signalproxy/objects/bufferview.rs +++ b/src/message/signalproxy/objects/bufferview.rs @@ -1,6 +1,6 @@ -use std::{collections::HashMap, convert::TryInto}; +use std::{collections::HashMap, convert::TryFrom, convert::TryInto}; -use libquassel_derive::NetworkList; +use libquassel_derive::{NetworkList, NetworkMap}; use crate::message::signalproxy::translation::Network; use crate::primitive::{Variant, VariantList}; @@ -52,7 +52,7 @@ impl super::NetworkList for BufferViewManager { } } -#[derive(Debug, Clone, PartialEq, NetworkList)] +#[derive(Debug, Clone, PartialEq, NetworkList, NetworkMap)] pub struct BufferViewConfig { #[network(rename = "BufferList", network, variant = "VariantList")] pub buffers: Vec<i32>, @@ -61,6 +61,8 @@ pub struct BufferViewConfig { #[network(rename = "TemporarilyRemovedBuffers", network, variant = "VariantList")] pub temporarily_removed_buffers: Vec<i32>, + // TODO think about how to handle the buffer view id + // we might introduce a default flag for the network macro // #[network(rename = "bufferViewId")] // pub buffer_view_id: i32, #[network(rename = "bufferViewName")] |
