pub struct ActixAdminBuilder {
pub scopes: HashMap<String, Scope>,
pub custom_routes: Vec<(String, Route)>,
pub actix_admin: ActixAdmin,
pub custom_index: Option<Route>,
}Expand description
Represents a builder entity which helps generating the ActixAdmin configuration
Fields§
§scopes: HashMap<String, Scope>§custom_routes: Vec<(String, Route)>§actix_admin: ActixAdmin§custom_index: Option<Route>Trait Implementations§
Source§impl ActixAdminBuilderTrait for ActixAdminBuilder
impl ActixAdminBuilderTrait for ActixAdminBuilder
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_for_index(&mut self, route: Route)
fn add_custom_handler_to_category( &mut self, menu_element_name: &str, path: &str, route: Route, add_to_menu: bool, category_name: &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_name: &str, )
fn add_custom_handler( &mut self, menu_element_name: &str, path: &str, route: Route, add_to_menu: bool, )
fn add_support_handler(&mut self, arg: &str, support: Route)
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 get_scope(self) -> Scope
fn get_actix_admin(&self) -> ActixAdmin
Auto Trait Implementations§
impl Freeze for ActixAdminBuilder
impl !RefUnwindSafe for ActixAdminBuilder
impl !Send for ActixAdminBuilder
impl !Sync for ActixAdminBuilder
impl Unpin for ActixAdminBuilder
impl !UnwindSafe for ActixAdminBuilder
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