1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::frame::frame_errors::ParseError;
use crate::frame::types;
use std::collections::HashMap;
#[derive(Debug)]
pub struct Supported {
pub options: HashMap<String, Vec<String>>,
}
impl Supported {
pub fn deserialize(buf: &mut &[u8]) -> Result<Self, ParseError> {
let options = types::read_string_multimap(buf)?;
Ok(Supported { options })
}
}