pub struct FrontendConfig {
pub components: HashMap<String, ComponentDef>,
pub pages: Vec<PageDef>,
pub api_routes: Vec<ApiRouteDef>,
pub global_styles: Option<HashMap<String, String>>,
pub config: Value,
}
Expand description
Complete frontend configuration
Fields§
§components: HashMap<String, ComponentDef>
§pages: Vec<PageDef>
§api_routes: Vec<ApiRouteDef>
§global_styles: Option<HashMap<String, String>>
§config: Value
Trait Implementations§
Source§impl Clone for FrontendConfig
impl Clone for FrontendConfig
Source§fn clone(&self) -> FrontendConfig
fn clone(&self) -> FrontendConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FrontendConfig
impl Debug for FrontendConfig
Source§impl<'de> Deserialize<'de> for FrontendConfig
impl<'de> Deserialize<'de> for FrontendConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FrontendConfig
impl RefUnwindSafe for FrontendConfig
impl Send for FrontendConfig
impl Sync for FrontendConfig
impl Unpin for FrontendConfig
impl UnwindSafe for FrontendConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more