pub struct TimeAxisMetadata { /* private fields */ }Expand description
Public description of the temporal coordinates used by a run.
Every record always has an integer iteration. Physical time remains
optional, and its unit is legal only when a physical-coordinate name is
configured. Labels are documentation persisted once in metadata.json;
they do not change crate::system_state::SimulationTime representation.
Implementations§
Source§impl TimeAxisMetadata
impl TimeAxisMetadata
Sourcepub fn new(iteration_name: impl Into<String>) -> Self
pub fn new(iteration_name: impl Into<String>) -> Self
Creates a time-axis declaration with a mandatory iteration label.
Whitespace is retained in the builder and rejected by
SystemStateWriterBuilder::create_new_recording, keeping fluent configuration infallible
while ensuring persisted labels are never silently normalized.
Sourcepub fn with_iteration_unit(self, unit: impl Into<String>) -> Self
pub fn with_iteration_unit(self, unit: impl Into<String>) -> Self
Sets the optional unit of the iteration coordinate.
Sourcepub fn with_physical_time_name(self, name: impl Into<String>) -> Self
pub fn with_physical_time_name(self, name: impl Into<String>) -> Self
Declares the optional floating-point physical coordinate.
Sourcepub fn with_physical_time_unit(self, unit: impl Into<String>) -> Self
pub fn with_physical_time_unit(self, unit: impl Into<String>) -> Self
Sets the physical-coordinate unit.
A matching TimeAxisMetadata::with_physical_time_name is required; construction fails
at SystemStateWriterBuilder::create_new_recording if the unit is configured alone.
Trait Implementations§
Source§impl Clone for TimeAxisMetadata
impl Clone for TimeAxisMetadata
Source§fn clone(&self) -> TimeAxisMetadata
fn clone(&self) -> TimeAxisMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more