Skip to main content

Module audit

Module audit 

Source
Expand description

Auto-stamping of audit timestamps on write.

Table::with_timestamps fills created_at/updated_at columns from the wall clock using the before-write hook machinery (see crate::table::hooks): created_at once, when a row is first inserted and only if the caller left it empty; updated_at on every insert and update. Values are RFC 3339 UTC strings (e.g. 2026-06-25T12:00:00Z).

Like crate::table::id_generator, it leans on the same From<String> value bound, so it works against any backend whose value type can carry a string — the column itself can be plain TEXT.

Structs§

Timestamps
Which columns the audit stamps write. Defaults to created_at / updated_at.