//! Origin classification for train path segments
use ;
/// Indicates whether a path segment was selected by the algorithm or manually added by a user.
///
/// When deserialising older path files that were produced before this field existed,
/// the `#[default]` attribute ensures backward-compatibility: missing `origin` values
/// are treated as [`PathOrigin::Algorithm`].
///
/// # Serialisation
///
/// The enum is serialised in lowercase: `"algorithm"` or `"manual"`.