修改了convertedwindspeed为float
This commit is contained in:
@@ -169,10 +169,9 @@ pub struct WeatherData {
|
||||
|
||||
// --- 以下是修改的重点 ---
|
||||
// 这些字段在前端是条件性发送的,因此在 Rust 中也必须是可选的
|
||||
|
||||
#[serde(rename = "convertedWindSpeed")]
|
||||
#[sqlx(rename = "convertedwindspeed")]
|
||||
pub converted_wind_speed: Option<i32>, // <-- 修改: i32 -> Option<i32>
|
||||
pub converted_wind_speed: Option<f64>,
|
||||
|
||||
pub date: NaiveDate,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user