Module architect_api::utils::duration
source · Expand description
Utility functions for working with durations
Structs§
- a serde visitor for
chrono::Duration
Enums§
- Helper struct to parse from either an absolute ISO 8601 datetime, or some duration relative to now (e.g. +1h, -3d, etc.)
Functions§
- A serde deserialize function for
chrono::Duration - Parse a duration string into a
chrono::Duration. - A serde serializer function for
chrono::Duration