diff options
Diffstat (limited to 'src/primitive/stringlist.rs')
| -rw-r--r-- | src/primitive/stringlist.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/primitive/stringlist.rs b/src/primitive/stringlist.rs index 872f5be..f76e95d 100644 --- a/src/primitive/stringlist.rs +++ b/src/primitive/stringlist.rs @@ -7,6 +7,8 @@ use log::trace; use crate::{deserialize::*, error::ProtocolError, serialize::*}; +use crate::serialize::SerializeVariant; + /// StringList are represented as a Vec of Strings /// /// StringLists are serialized as an i32 of the amount of elements and then each element as a String @@ -45,6 +47,10 @@ impl Deserialize for StringList { } } +impl SerializeVariant for StringList { + const TYPE: u32 = crate::primitive::QSTRINGLIST; +} + #[test] pub fn string_list_serialize() { let mut test_list = StringList::new(); |
