pub struct PunctualDetection {
pub timestamp: DateTime<FixedOffset>,
pub location: Option<TopologicalLocation>,
pub coordinates: Option<GeographicLocation>,
pub intrinsic: Option<f64>,
pub id: Option<String>,
pub source: Option<String>,
pub source_file: String,
pub source_row: usize,
pub metadata: BTreeMap<String, String>,
}Expand description
A punctual detection: train was at a precise (timestamp, position).
Either location (topological) or coordinates (geographic) MUST be
supplied — never both. The combination is validated at load time.
Fields§
§timestamp: DateTime<FixedOffset>§location: Option<TopologicalLocation>Topological position, mutually exclusive with coordinates.
coordinates: Option<GeographicLocation>Geographic position, mutually exclusive with location.
intrinsic: Option<f64>Optional intrinsic to associate with coordinates once resolved
(currently unused at load time; reserved for future enhancements).
id: Option<String>Optional caller-supplied stable identifier (free-form).
source: Option<String>Free-form source label (e.g. "axle-counter-A12").
source_file: StringProvenance: origin file path.
source_row: usizeProvenance: origin row index (CSV) or feature index (GeoJSON).
metadata: BTreeMap<String, String>Unknown / extra columns or properties, captured verbatim.
Trait Implementations§
Source§impl Clone for PunctualDetection
impl Clone for PunctualDetection
Source§fn clone(&self) -> PunctualDetection
fn clone(&self) -> PunctualDetection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PunctualDetection
impl Debug for PunctualDetection
Source§impl<'de> Deserialize<'de> for PunctualDetection
impl<'de> Deserialize<'de> for PunctualDetection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PunctualDetection
impl PartialEq for PunctualDetection
Source§fn eq(&self, other: &PunctualDetection) -> bool
fn eq(&self, other: &PunctualDetection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PunctualDetection
impl Serialize for PunctualDetection
impl StructuralPartialEq for PunctualDetection
Auto Trait Implementations§
impl Freeze for PunctualDetection
impl RefUnwindSafe for PunctualDetection
impl Send for PunctualDetection
impl Sync for PunctualDetection
impl Unpin for PunctualDetection
impl UnsafeUnpin for PunctualDetection
impl UnwindSafe for PunctualDetection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more