kitchen/web/src/app_state.rs

31 lines
819 B
Rust
Raw Normal View History

// Copyright 2022 Jeremy Wall
2022-03-06 18:04:49 -05:00
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
2022-03-06 18:04:49 -05:00
//
// http://www.apache.org/licenses/LICENSE-2.0
2022-03-06 18:04:49 -05:00
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
2022-07-15 19:30:06 -04:00
#[derive(Debug, Clone)]
pub enum AppRoutes {
Plan,
Inventory,
Cook,
2022-08-15 19:37:08 -04:00
Recipe(String),
2022-08-30 17:31:33 -04:00
Login,
2022-07-15 19:30:06 -04:00
Error(String),
NotFound,
}
impl Default for AppRoutes {
fn default() -> Self {
Self::Plan
}
2022-03-06 18:04:49 -05:00
}