3 ms·
This looks exactly like the Python code I'm currently writing. That's what I would call a Flask-like API. Nice seeing this in Rust! A Python equivalent using t
by Rotareti 9y ago
This looks exactly like the Python code I'm currently writing. That's what I would call a Flask-like API. Nice seeing this in Rust!
A Python equivalent using the typing module:
@app.get("/<times>")
def message_query(times: TimeRange) -> str:
return format("{:?}", times)