relational_types 2.0.0

Manage relations between objects
Documentation
1
2
3
4
5
6
7
8
9
use thiserror::Error;

#[derive(Error, Debug)]
/// Typed error for `collections`.
pub enum Error {
    /// This error occurs when an identifier is not in a `CollectionWithId`.
    #[error("identifier {0} not found while building relation {1}")]
    IdentifierNotFound(String, String),
}