teo 0.2.6-alpha.5

Next-generation web framework for Rust, Node.js and Python.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Clone, Debug)]
pub enum RuntimeVersion {
    Rust(&'static str),
    NodeJS(String),
    Python(String),
}

impl ToString for RuntimeVersion {

    fn to_string(&self) -> String {
        match self {
            RuntimeVersion::Rust(v) => format!("Rust {v}"),
            RuntimeVersion::NodeJS(v) => format!("Node.js {v}"),
            RuntimeVersion::Python(v) => format!("Python {v}"),
        }
    }
}