scylla_cql/frame/response/
supported.rs1use crate::frame::frame_errors::CqlSupportedParseError;
4use crate::frame::types;
5use std::collections::HashMap;
6
7#[derive(Debug)]
8pub struct Supported {
11 pub options: HashMap<String, Vec<String>>,
13}
14
15impl Supported {
16 pub fn deserialize(buf: &mut &[u8]) -> Result<Self, CqlSupportedParseError> {
18 let options = types::read_string_multimap(buf)
19 .map_err(CqlSupportedParseError::OptionsMapDeserialization)?;
20
21 Ok(Supported { options })
22 }
23}