pub struct Admin { /* private fields */ }Expand description
Admin instance builder
Implementations§
Source§impl Admin
impl Admin
Sourcepub fn items_per_page(self, count: usize) -> Self
pub fn items_per_page(self, count: usize) -> Self
Set items per page
Sourcepub fn require_auth(self, required: bool) -> Self
pub fn require_auth(self, required: bool) -> Self
Enable/disable authentication
Sourcepub fn register_model(self, model: ModelDefinition) -> Self
pub fn register_model(self, model: ModelDefinition) -> Self
Register a model with the admin
Sourcepub fn build(self) -> AdminInstance
pub fn build(self) -> AdminInstance
Build the admin instance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Admin
impl RefUnwindSafe for Admin
impl Send for Admin
impl Sync for Admin
impl Unpin for Admin
impl UnwindSafe for Admin
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