bazzar/web/src/model.rs

17 lines
351 B
Rust
Raw Normal View History

2022-05-11 15:56:41 +02:00
use seed::Url;
2022-05-15 14:05:26 +02:00
use crate::{I18n, Page, shopping_cart};
2022-05-05 16:30:25 +02:00
2022-05-15 13:08:42 +02:00
#[derive(Debug)]
2022-05-05 16:30:25 +02:00
pub struct Model {
2022-05-11 15:56:41 +02:00
pub url: Url,
2022-05-05 16:30:25 +02:00
pub token: Option<String>,
pub page: Page,
2022-05-10 16:20:37 +02:00
pub logo: Option<String>,
pub shared: crate::shared::Model,
pub i18n: I18n,
2022-05-15 14:05:26 +02:00
pub cart: shopping_cart::ShoppingCart,
2022-05-15 13:08:42 +02:00
#[cfg(debug_assertions)]
pub debug_modal: bool,
2022-05-05 16:30:25 +02:00
}