pub type TypesResult<T> = Result<T, TypesError>;
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum TypesError {
#[error("invalid config: {0}")]
InvalidConfig(String),
}
pub type SnapshotManifestResult<T> = Result<T, SnapshotManifestError>;
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum SnapshotManifestError {
#[error("manifest parse error: {0}")]
ManifestParse(String),
}
impl TypesError {
pub(crate) fn invalid_config(message: impl Into<String>) -> Self {
Self::InvalidConfig(message.into())
}
}