use thiserror::Error;
#[derive(Error, Debug)]
pub enum DeserializeError {
#[error("expected field `{0}` to be selected, but got unselected")]
SelectionExpected(String),
#[error("expected stream to contain more selections")]
StreamEnd,
#[error("unable to convert field `{0}`, because `{1}`")]
ConversionFailed(String, String),
}