surreal-id 1.0.1

A package for easily creating ID types for usage with surrealdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(thiserror::Error, Debug, PartialEq)]
pub enum IdError {
    #[error("invalid id format: {0}")]
    InvalidIdFormat(String),

    #[error("invalid table, want: {0}, got: {1}")]
    InvalidTable(String, String),

    #[error("id cannot be empty")]
    IdCannotBeEmpty,
}