Expand description
Part of the wider OpenTimeline project
This crate defines the basic datatypes used across the OpenTimeline project (web API, desktop application, renderer).
This crate is designed to be used by the rest of the OpenTimeline project, as well as by other 3rd party projects that want to interact with OpenTimeline (e.g. via it’s JSON web API).
This crate aims to provide APIs for each type so that if a type is instantiated, the developer can be sure it’s valid.
Structs§
- Date
- The OpenTimeline date type
- Day
- The OpenTimeline day type
- Entity
- The OpenTimeline
Entitytype - Month
- The OpenTimeline month type
- Name
- The OpenTimeline
Nametype. The value can be any string apart from one which when trimmed of trailing and leading whitespace is empty. - Open
Timeline Id - The OpenTimeline ID type is a UUIDv4
- RawEnd
Date - Used only by the custom deserialiser (to make it simpler)
- Reduced
Entities - Container for a set of
ReducedEntitys - Reduced
Entity - The reduced entity type - holds only the
OpenTimelineIdandNameof the full type - Reduced
Timeline - The reduced entity type - holds only the
OpenTimelineIdandNameof the full type - Reduced
Timelines - Container for a set of
ReducedTimelines - Timeline
Edit - Represents the information needed for creating and updating a timeline
- Timeline
View - Holds the information needed to draw a timeline
- Year
- The OpenTimeline year type
Enums§
- Date
Error - Errors that can arise in relation to a
Date - Entity
Error - Errors that can arise in relation to an
Entity - Name
Error - Errors that can arise in relation to a
Name - Open
Timeline Error - Errors that can be returned by OpenTimeline
Constants§
- MAX_
YEAR - The maximum year allowed in the OpenTimeline system
- MIN_
YEAR - The minimum year allowed in the OpenTimeline system
Traits§
- HasId
AndName - Mark that a type has both an
OpenTimelineIdand aName, and setup getters and setters for both - IsReduced
Collection - Implementing types are collections of “reduced” types
- IsReduced
Type - Implementing types are “reduced” types - they hold the ID and name of the full type, but nothing else