appcore_shared 0.0.1

Utility library for the appcore project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13


/// Identify means a identifiable struct.
///
/// Example: database entity
pub trait Identify {
    /// Type of id.
    /// In many case, it's numeral primitives like `u64` / `i64`.
    type Id;

    /// Get id of this model.
    fn id(&self) -> Self::Id;
}