pub struct AppConf {Show 15 fields
pub title: RUMString,
pub description: RUMString,
pub company: RUMString,
pub copyright: RUMString,
pub lang: RUMString,
pub theme: RUMString,
pub flags: FlagsConf,
pub header_conf: HeaderConf,
pub footer_conf: FooterConf,
pub strings: RootNestedNestedTextMap,
pub config: NestedNestedTextMap,
pub pipelines: PipelineConf,
pub router: RouterConf,
pub cors: Option<CORSConf>,
pub captcha: Option<TextMap>,
}Expand description
This is a core structure in a web project using the RUMTK framework. This structure contains a series of fields that represent the web app initial state or configuration. The idea is that the web app can come bundled with a JSON config file following this structure which we can load at runtime. The settings will dictate a few key project behaviors such as properly labeling some components with the company name or use the correct language text.
Fields§
§title: RUMString§description: RUMString§company: RUMString§copyright: RUMString§lang: RUMString§theme: RUMString§flags: FlagsConf§header_conf: HeaderConf§strings: RootNestedNestedTextMap§config: NestedNestedTextMap§pipelines: PipelineConf§router: RouterConf§cors: Option<CORSConf>§captcha: Option<TextMap>Implementations§
Source§impl AppConf
impl AppConf
pub fn update_site_info( &mut self, title: RUMString, description: RUMString, company: RUMString, copyright: RUMString, )
pub fn get_pipelines(&self) -> &PipelineConf
pub fn get_text(&self, item: &str) -> NestedTextMap
pub fn get_section(&self, section: &str) -> TextMap
pub fn get_default_item(&self, section: &str) -> TextMap
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConf
impl<'de> Deserialize<'de> for AppConf
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
impl StructuralPartialEq for AppConf
Auto Trait Implementations§
impl Forget for AppConf
impl Freeze for AppConfwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, IndexMap<String, IndexMap<String, IndexMap<String, String>>>>>: Freeze,
PhantomData<Bucket<String, IndexMap<String, IndexMap<String, String>>>>: Freeze,
PhantomData<Bucket<String, String>>: Freeze,
PhantomData<Bucket<String, IndexMap<String, String>>>: Freeze,
PhantomData<(String, HashMap<String, Vec<RUMCommand>>)>: Freeze,
PhantomData<Bucket<String, PageConf>>: Freeze,
PhantomData<String>: Freeze,
impl Move for AppConf
impl RefUnwindSafe for AppConf
impl Send for AppConf
impl Sync for AppConf
impl Unpin for AppConf
impl UnsafeUnpin for AppConfwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, IndexMap<String, IndexMap<String, IndexMap<String, String>>>>>: UnsafeUnpin,
PhantomData<Bucket<String, IndexMap<String, IndexMap<String, String>>>>: UnsafeUnpin,
PhantomData<Bucket<String, String>>: UnsafeUnpin,
PhantomData<Bucket<String, IndexMap<String, String>>>: UnsafeUnpin,
PhantomData<(String, HashMap<String, Vec<RUMCommand>>)>: UnsafeUnpin,
PhantomData<Bucket<String, PageConf>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AppConfwhere
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
HashMap<String, HashMap<String, Vec<RUMCommand>>>: UnwindSafe,
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