1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! The `RequestMetric` row — the typed shape the recorder writes and the
//! store persists into the `requests` table.
//!
//! v1 schema: a single `requests` table that records pipeline-observed
//! usage + the estimated micro-USD computed from the pricing table. No
//! charge state, no funding source — those are billing concepts, and
//! this OSS module measures, not bills.
//!
//! The `requests` table is created by the sea-orm migrations in
//! `crate::db::migration` (including the in-place rename of the
//! pre-OSS-refactor `final_charge_micro_usd` column); this module only
//! reads and writes rows.
/// One settled request, as recorded by [`super::MeteringRecorder`].