Crate world_tables_base

Source

Structs§

City
Country
Currency
Key
A newtype for defining a Key on entities
Metadata
State
Tag
Struct that holds both key and label for convenience
UrlBuilder
WorldRegion
WorldSubregion

Enums§

Entity
Enum for defining a simple entity that will hold a Key or the created/fetched data
EntityLabel
Enum for situations when you want to define not just a Key but also a Label
Many
Enum for defining one-to-many or many-to-many relationships

Traits§

Keyed
Trait for entities to define which struct field holds their primary key
Label
Trait for entities that optionally have a label defined
Model
Tagged
Convenience trait for returning both key and label as a Tag

Type Aliases§

EntityInt
An Entity that has an Int as key
EntityLabelInt
An EntityLabel that has an Int as key
EntityLabelString
An EntityLabel that has a String as key
EntityString
An Entity that has a String as key
Int
An Int typedef for convenience to be used as Key number

Derive Macros§

Entity
This macro generates an implementation of the Keyed trait for structs that have a single Key<T> defined
Label
This macro generates an implementation of the Label trait for structs that have a field marked with #[label] attribute