fn car_factory(color: String, transmission: Transmission, convertible: bool) -> Car {
    let car = Car {
        color: color,
        transmission: transmission,
        convertible: convertible,
        mileage: 0,
    };

    return car;
}
// Buiild a "Car" using values from the input arguments
// - Color of car (String)
// - Transmission type (enum value)
// - Convertible (bool, true if car is a convertible)
Buiild a "Car" using values from the input arguments
Color of car (String)
Transmission type (enum value)
Convertible (bool, true if car is a convertible)
Buiild a " Car " using values from the input arguments Color of car ( String ) Transmission type ( enum value ) Convertible ( bool true if car is a convertible )
fn car_factory(color: String, transmission: Transmission, convertible: bool) -> Car {
    let car = Car {
        color: color,
        transmission: transmission,
        convertible: convertible,
        mileage: 0,
    };
    return car;
}
fn car_factory ( color : String , transmission : Transmission , convertible : bool ) -> Car { let car = Car { color : color , transmission : transmission , convertible : convertible , mileage : 0 , } ; return car ; }
Buiild a "Car" using values from the input arguments
 Color of car (String)
 Transmission type (enum value)
 Convertible (bool, true if car is a convertible)
Buiild a " Car " using values from the input arguments Color of car ( String ) Transmission type ( enum value ) Convertible ( bool true if car is a convertible )
color
String
transmission
Transmission
convertible
bool
color
String
transmission
Transmission
convertible
bool