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 }
|
||||
}
|
||||
}
|
||||
@@ -32,3 +32,5 @@ pub fn init_logger() {
|
||||
|
||||
mod server;
|
||||
pub use server::run_server;
|
||||
|
||||
mod house;
|
||||
|
||||
Reference in New Issue
Block a user