Struct actix_admin::builder::ActixAdminBuilder
source · 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( &mut self, menu_element_name: &str, path: &str, route: Route, add_to_menu: bool )
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 !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