rust实现weatherforecast的获取天气webapi

rust用来写webapi可能有点大材小用,但是作为入门学习应该说是不错的选择。 cargo new webapi创建一个webapi项目,在src下面新建handler文件夹和models文件夹。 在models文件夹下面建立一个mod.rs和weatherforecast.rs文件。 weath
posted @ 2023-06-05 17:08  星仔007  阅读(313)  评论(0编辑  收藏  举报