pub fn new_passenger_car(
        type_name: String,
        road_number: Option<String>,
        railway: Railway,
        epoch: Epoch,
        category: Option<PassengerCarType>,
        service_level: Option<ServiceLevel>,
        depot: Option<String>,
        livery: Option<String>,
        length_over_buffer: Option<LengthOverBuffer>,
    ) -> Self {
        RollingStock::PassengerCar {
            type_name,
            road_number,
            railway,
            epoch,
            category,
            service_level,
            depot,
            livery,
            length_over_buffer,
        }
    }
/// Creates a new passenger car rolling stock
Creates a new passenger car rolling stock
Creates a new passenger car rolling stock
pub fn new_passenger_car(
        type_name: String,
        road_number: Option<String>,
        railway: Railway,
        epoch: Epoch,
        category: Option<PassengerCarType>,
        service_level: Option<ServiceLevel>,
        depot: Option<String>,
        livery: Option<String>,
        length_over_buffer: Option<LengthOverBuffer>,
    ) -> Self {
        RollingStock::PassengerCar {
            type_name,
            road_number,
            railway,
            epoch,
            category,
            service_level,
            depot,
            livery,
            length_over_buffer,
        }
    }
pub fn new_passenger_car ( type_name : String , road_number : Option < String > , railway : Railway , epoch : Epoch , category : Option < PassengerCarType > , service_level : Option < ServiceLevel > , depot : Option < String > , livery : Option < String > , length_over_buffer : Option < LengthOverBuffer > , ) -> Self { RollingStock :: PassengerCar { type_name , road_number , railway , epoch , category , service_level , depot , livery , length_over_buffer , } }
Creates a new passenger car rolling stock
Creates a new passenger car rolling stock
type_name
String
road_number
Option<String>
railway
Railway
epoch
Epoch
category
Option<PassengerCarType>
service_level
Option<ServiceLevel>
depot
Option<String>
livery
Option<String>
length_over_buffer
Option<LengthOverBuffer>