pub fn data_from_state(state: &State) -> Result<&Data, Error>