pub trait ActixAdminBuilderTrait {
Show 13 methods
// Required methods
fn new(configuration: ActixAdminConfiguration) -> Self;
fn add_entity<E: ActixAdminViewModelTrait + 'static>(
&mut self,
view_model: &ActixAdminViewModel,
);
fn add_entity_to_category<E: ActixAdminViewModelTrait + 'static>(
&mut self,
view_model: &ActixAdminViewModel,
category_name: &str,
);
fn add_custom_handler(
&mut self,
menu_element_name: &str,
path: &str,
route: Route,
add_to_menu: bool,
);
fn add_custom_handler_to_category(
&mut self,
menu_element_name: &str,
path: &str,
route: Route,
add_to_menu: bool,
category: &str,
);
fn add_card_grid(
&mut self,
menu_element_name: &str,
path: &str,
elements: Vec<Vec<String>>,
add_to_menu: bool,
);
fn add_card_grid_to_category(
&mut self,
menu_element_name: &str,
path: &str,
elements: Vec<Vec<String>>,
add_to_menu: bool,
category: &str,
);
fn add_custom_handler_for_entity<E: ActixAdminViewModelTrait + 'static>(
&mut self,
menu_element_name: &str,
path: &str,
route: Route,
add_to_menu: bool,
);
fn add_custom_handler_for_entity_in_category<E: ActixAdminViewModelTrait + 'static>(
&mut self,
menu_element_name: &str,
path: &str,
route: Route,
category_name: &str,
add_to_menu: bool,
);
fn add_custom_handler_for_index(&mut self, route: Route);
fn get_scope(self) -> Scope;
fn get_actix_admin(&self) -> ActixAdmin;
fn add_support_handler(&mut self, arg: &str, support: Route);
}Expand description
The trait to work with ActixAdminBuilder
Required Methods§
fn new(configuration: ActixAdminConfiguration) -> Self
fn add_entity<E: ActixAdminViewModelTrait + 'static>( &mut self, view_model: &ActixAdminViewModel, )
fn add_entity_to_category<E: ActixAdminViewModelTrait + 'static>( &mut self, view_model: &ActixAdminViewModel, category_name: &str, )
fn add_custom_handler( &mut self, menu_element_name: &str, path: &str, route: Route, add_to_menu: bool, )
fn add_custom_handler_to_category( &mut self, menu_element_name: &str, path: &str, route: Route, add_to_menu: bool, category: &str, )
fn add_card_grid( &mut self, menu_element_name: &str, path: &str, elements: Vec<Vec<String>>, add_to_menu: bool, )
fn add_card_grid_to_category( &mut self, menu_element_name: &str, path: &str, elements: Vec<Vec<String>>, add_to_menu: bool, category: &str, )
fn add_custom_handler_for_entity<E: ActixAdminViewModelTrait + 'static>( &mut self, menu_element_name: &str, path: &str, route: Route, add_to_menu: bool, )
fn add_custom_handler_for_entity_in_category<E: ActixAdminViewModelTrait + 'static>( &mut self, menu_element_name: &str, path: &str, route: Route, category_name: &str, add_to_menu: bool, )
fn add_custom_handler_for_index(&mut self, route: Route)
fn get_scope(self) -> Scope
fn get_actix_admin(&self) -> ActixAdmin
fn add_support_handler(&mut self, arg: &str, support: Route)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.