EntityString

Type Alias EntityString 

Source
pub type EntityString<T> = Entity<String, T>;
Expand description

An Entity that has a String as key

Aliased Type§

pub enum EntityString<T> {
    Key(Key<String>),
    Data(Box<T>),
    None,
}

Variants§

§

Key(Key<String>)

Key of the entity

§

Data(Box<T>)

Created/Fetched data for the entity

§

None

For when you have no data to fill or null from database