UID

Trait UID 

Source
pub trait UID {
    type Value;

    // Required method
    fn uid(&self) -> Self::Value;
}
Expand description

UID is a value object used as unique identity that must have by each of identity

This trait using associated type of UID::Value to fill any possible types. Usually it will either a string (UUID) or an integer (AUTO_INCREMENT), but it also be able to used an id like MongoDB ID Object Hash

Required Associated Types§

Required Methods§

Source

fn uid(&self) -> Self::Value

Implementors§