1pub use super::conf::*;
24use axum::extract::{Multipart, Path, Query};
25use phf::Map;
26pub use rumtk_core::strings::RUMString;
27pub use rumtk_core::strings::{CompactStringExt, RUMStringConversions, UTFStringExtensions};
28use rumtk_core::types::RUMHashMap;
29use std::sync::Arc;
30
31pub type RUMWebData = RUMHashMap<RUMString, RUMString>;
32pub type URLPath<'a, 'b> = &'a [&'b str];
33pub type AsyncURLPath = Arc<Vec<RUMString>>;
34pub type URLParams<'a> = &'a RUMWebData;
35pub type AsyncURLParams = Arc<RUMWebData>;
36
37pub use crate::utils::response::*;
39
40pub type RenderedPageComponents = Vec<RUMString>;
41pub type RouterComponents = Path<Vec<RUMString>>;
43pub type RouterParams = Query<RUMWebData>;
44pub type RouterForm = Multipart;
45
46pub type ComponentFunction = fn(URLPath, URLParams, SharedAppState) -> HTMLResult;
48pub type PageFunction = fn(SharedAppState) -> RenderedPageComponents;
49pub type ComponentMap = Map<&'static str, ComponentFunction>;
50pub type PageMap = Map<&'static str, PageFunction>;
51
52pub use crate::utils::form_data::{FormBuffer, FormData};
54pub type RouterAPIPath = Path<RUMString>;
55pub type APIPath = RUMString;
56pub type APIFunction = fn(APIPath, RUMWebData, FormData, SharedAppState) -> HTMLResult;
57
58pub use askama::Template as RUMWebTemplate;