/*
* SPDX-License-Identifier: MIT
* Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
*/
use ;
/// A data payload that one `DataRecord` describes completely, in both directions.
///
/// A payload type implements this once, and `Data<T>` is then persistable wherever a `Data<f64>`
/// is: `snapshot`, `restore`, the store and the stream all go through the blanket
/// `Recordable<DataRecord>` for `Data<T: Storable>`. A struct maps to `DataRecord::Fields`, a
/// sequence to `List`, a scalar to its arm.
///
/// Declared here rather than in the store crate because the software scalars live in
/// `deep_causality_num`, which is foreign to both, and only the crate that declares a trait may
/// implement it for a foreign type. A backend never names this trait; it sees `DataRecord`.