Cotton code
26 lines · 985 B · RustRaw
//! COTTON HEALTH (12 Nov 2026): a person's Apple Health//! data in their own database, read-only. The iPhone reads HealthKit and//! sends what changed; Apple's export.zip is read the same way; Health//! Connect on Android is to land in the same tables. This module is the//! whole of what is decided about a reading: what is read and in which unit//! ([`catalog`]), how samples become a day's number ([`fold`]), the rows and//! their keys ([`rows`]), a phone's batch ([`land`]), the export//! ([`export`]) and what the faces draw ([`summary`]). The shells read//! HealthKit and draw.//!//! Three tables, sealed on the object (only the day, the metric or kind and//! the times stay clear): `health_day`, one row per metric per day, the//! main table; `health_workout`; `health_measurement`. No raw heart-rate//! stream is kept.pub mod app;pub mod catalog;pub mod export;pub mod fold;pub mod lab;pub mod land;pub mod rows;pub mod summary;#[cfg(test)]mod tests;