pub struct Amis { /* private fields */ }
Expand description
UI generator for amis.
Trait Implementations§
Source§impl Application for Amis
impl Application for Amis
Source§fn run_with<T: AsyncScheduler + Send + 'static>(self, scheduler: T)
fn run_with<T: AsyncScheduler + Send + 'static>(self, scheduler: T)
Runs the application with an optional scheduler for async jobs.
Source§fn register_with(self, server_tag: ServerTag, routes: Self::Routes) -> Selfwhere
Self: Sized,
fn register_with(self, server_tag: ServerTag, routes: Self::Routes) -> Selfwhere
Self: Sized,
Registers routes with a server tag.
Source§fn register_debug(self, routes: Self::Routes) -> Selfwhere
Self: Sized,
fn register_debug(self, routes: Self::Routes) -> Selfwhere
Self: Sized,
Registers routes for debugger.
Source§fn add_plugin(self, plugin: Plugin) -> Selfwhere
Self: Sized,
fn add_plugin(self, plugin: Plugin) -> Selfwhere
Self: Sized,
Adds a custom plugin.
Returns a reference to the shared application state.
Source§fn config() -> &'static Map<String, Value>
fn config() -> &'static Map<String, Value>
Returns a reference to the shared application config.
Source§fn state_data() -> &'static Map<String, Value>
fn state_data() -> &'static Map<String, Value>
Returns a reference to the shared application state data.
Source§fn secret_key() -> &'static [u8] ⓘ
fn secret_key() -> &'static [u8] ⓘ
Returns the secret key for the application.
It should have at least 64 bytes. Read more
Source§fn project_dir() -> &'static PathBuf
fn project_dir() -> &'static PathBuf
Returns the project directory for the application.
Source§fn config_dir() -> &'static PathBuf
fn config_dir() -> &'static PathBuf
Returns the config directory for the application. Read more
Returns the shared directory with a specific name,
which is defined in the
dirs
table. Read moreSource§fn parse_path(path: &str) -> PathBuf
fn parse_path(path: &str) -> PathBuf
Parses an absolute path, or a path relative to the home dir
~/
or project dir.Auto Trait Implementations§
impl Freeze for Amis
impl RefUnwindSafe for Amis
impl Send for Amis
impl Sync for Amis
impl Unpin for Amis
impl UnwindSafe for Amis
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