pub struct AdminConfig {
pub admin_role: String,
pub default_user_role: String,
pub allow_ban_admin: bool,
pub default_page_limit: usize,
pub max_page_limit: usize,
}Expand description
Configuration for the admin plugin.
Fields§
§admin_role: StringThe role required to access admin endpoints (default: "admin").
default_user_role: StringDefault role assigned to newly created users (default: "user").
allow_ban_admin: boolWhether to allow banning other admins (default: false).
default_page_limit: usizeDefault number of users returned in list-users (default: 100).
max_page_limit: usizeMaximum number of users returned in list-users (default: 500).
Trait Implementations§
Source§impl Clone for AdminConfig
impl Clone for AdminConfig
Source§fn clone(&self) -> AdminConfig
fn clone(&self) -> AdminConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdminConfig
impl Debug for AdminConfig
Source§impl Default for AdminConfig
impl Default for AdminConfig
Source§fn default() -> AdminConfig
fn default() -> AdminConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AdminConfig
impl RefUnwindSafe for AdminConfig
impl Send for AdminConfig
impl Sync for AdminConfig
impl Unpin for AdminConfig
impl UnsafeUnpin for AdminConfig
impl UnwindSafe for AdminConfig
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