smart-house-web: в работе
This commit is contained in:
10
smart-house-web/backend/src/house.rs
Normal file
10
smart-house-web/backend/src/house.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
struct PowerSocket {
|
||||
power_rate: f32,
|
||||
on: bool,
|
||||
}
|
||||
|
||||
impl PowerSocket {
|
||||
pub fn new(power_rate: f32, on: bool) -> Self {
|
||||
Self { power_rate, on }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user