ruma_common::serde::single_element_seq

Function deserialize

Source
pub fn deserialize<'de, T, D>(deserializer: D) -> Result<T, D::Error>
where T: Deserialize<'de>, D: Deserializer<'de>,
Expand description

Deserialize a list of one item and return that item.