pub struct AdminConfig {Show 15 fields
pub title: String,
pub base_path: String,
pub theme: Theme,
pub items_per_page: usize,
pub max_items_per_page: usize,
pub require_auth: bool,
pub enable_search: bool,
pub enable_export: bool,
pub date_format: String,
pub datetime_format: String,
pub logo_url: Option<String>,
pub favicon_url: Option<String>,
pub custom_css: Option<String>,
pub custom_js: Option<String>,
pub footer_text: Option<String>,
}Expand description
Admin dashboard configuration
Fields§
§title: StringDashboard title
base_path: StringBase URL path (e.g., “/admin”)
theme: ThemeTheme settings
items_per_page: usizeItems per page for lists
max_items_per_page: usizeMaximum items per page allowed
require_auth: boolRequire authentication
enable_search: boolEnable search globally
enable_export: boolEnable export functionality
date_format: StringDate format
datetime_format: StringDateTime format
logo_url: Option<String>Logo URL
favicon_url: Option<String>Favicon URL
custom_css: Option<String>Custom CSS
custom_js: Option<String>Custom JavaScript
Footer text
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§impl<'de> Deserialize<'de> for AdminConfig
impl<'de> Deserialize<'de> for AdminConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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 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