/// Creates a new train rolling stock
Creates a new train rolling stock
Creates a new train rolling stock
pub fn new_train(
        type_name: String,
        road_number: Option<String>,
        n_of_elements: u8,
        railway: Railway,
        epoch: Epoch,
        category: Option<TrainType>,
        depot: Option<String>,
        livery: Option<String>,
        length_over_buffer: Option<LengthOverBuffer>,
        control: Option<Control>,
        dcc_interface: Option<DccInterface>,
    ) -> Self {
        RollingStock::Train {
            type_name,
            road_number,
            n_of_elements,
            railway,
            epoch,
            category,
            depot,
            livery,
            length_over_buffer,
            control,
            dcc_interface,
        }
    }
pub fn new_train ( type_name : String , road_number : Option < String > , n_of_elements : u8 , railway : Railway , epoch : Epoch , category : Option < TrainType > , depot : Option < String > , livery : Option < String > , length_over_buffer : Option < LengthOverBuffer > , control : Option < Control > , dcc_interface : Option < DccInterface > , ) -> Self { RollingStock :: Train { type_name , road_number , n_of_elements , railway , epoch , category , depot , livery , length_over_buffer , control , dcc_interface , } }
Creates a new train rolling stock
Creates a new train rolling stock
type_name
String
<not_specific>
road_number
Option<String>
<not_specific>
n_of_elements
u8
<not_specific>
railway
Railway
<not_specific>
epoch
Epoch
<not_specific>
category
Option<TrainType>
<not_specific>
depot
Option<String>
<not_specific>
livery
Option<String>
<not_specific>
length_over_buffer
Option<LengthOverBuffer>
<not_specific>
control
Option<Control>
<not_specific>
dcc_interface
Option<DccInterface>
<not_specific>