pub struct DashboardView {
pub title: String,
pub stats: Vec<StatCard>,
pub quick_actions: Vec<QuickAction>,
pub recent_activity: Vec<ActivityItem>,
pub model_summaries: Vec<ModelSummary>,
}Expand description
Dashboard view data
Fields§
§title: StringPage title
stats: Vec<StatCard>Statistics cards
quick_actions: Vec<QuickAction>Quick actions
recent_activity: Vec<ActivityItem>Recent activity
model_summaries: Vec<ModelSummary>Model summaries
Implementations§
Source§impl DashboardView
impl DashboardView
Sourcepub fn new(admin: &AdminInstance) -> Self
pub fn new(admin: &AdminInstance) -> Self
Create a new dashboard view
Sourcepub fn with_stats(self, stats: Vec<StatCard>) -> Self
pub fn with_stats(self, stats: Vec<StatCard>) -> Self
Set statistics
Sourcepub fn with_activity(self, activity: Vec<ActivityItem>) -> Self
pub fn with_activity(self, activity: Vec<ActivityItem>) -> Self
Set recent activity
Trait Implementations§
Source§impl Clone for DashboardView
impl Clone for DashboardView
Source§fn clone(&self) -> DashboardView
fn clone(&self) -> DashboardView
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 DashboardView
impl Debug for DashboardView
Source§impl<'de> Deserialize<'de> for DashboardView
impl<'de> Deserialize<'de> for DashboardView
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 DashboardView
impl RefUnwindSafe for DashboardView
impl Send for DashboardView
impl Sync for DashboardView
impl Unpin for DashboardView
impl UnwindSafe for DashboardView
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