pub fn new_locomotive(
        class_name: String,
        road_number: String,
        series: Option<String>,
        railway: Railway,
        epoch: Epoch,
        category: LocomotiveType,
        depot: Option<String>,
        livery: Option<String>,
        length_over_buffer: Option<LengthOverBuffer>,
        control: Option<Control>,
        dcc_interface: Option<DccInterface>,
    ) -> Self {
        RollingStock::Locomotive {
            class_name,
            road_number,
            series,
            railway,
            epoch,
            category,
            depot,
            livery,
            length_over_buffer,
            control,
            dcc_interface,
        }
    }
/// Creates a new locomotive rolling stock
Creates a new locomotive rolling stock
Creates a new locomotive rolling stock
pub fn new_locomotive(
        class_name: String,
        road_number: String,
        series: Option<String>,
        railway: Railway,
        epoch: Epoch,
        category: LocomotiveType,
        depot: Option<String>,
        livery: Option<String>,
        length_over_buffer: Option<LengthOverBuffer>,
        control: Option<Control>,
        dcc_interface: Option<DccInterface>,
    ) -> Self {
        RollingStock::Locomotive {
            class_name,
            road_number,
            series,
            railway,
            epoch,
            category,
            depot,
            livery,
            length_over_buffer,
            control,
            dcc_interface,
        }
    }
pub fn new_locomotive ( class_name : String , road_number : String , series : Option < String > , railway : Railway , epoch : Epoch , category : LocomotiveType , depot : Option < String > , livery : Option < String > , length_over_buffer : Option < LengthOverBuffer > , control : Option < Control > , dcc_interface : Option < DccInterface > , ) -> Self { RollingStock :: Locomotive { class_name , road_number , series , railway , epoch , category , depot , livery , length_over_buffer , control , dcc_interface , } }
Creates a new locomotive rolling stock
Creates a new locomotive rolling stock
class_name
String
road_number
String
series
Option<String>
railway
Railway
epoch
Epoch
category
LocomotiveType
depot
Option<String>
livery
Option<String>
length_over_buffer
Option<LengthOverBuffer>
control
Option<Control>
dcc_interface
Option<DccInterface>