scylla_cql/frame/response/
supported.rs

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