pub struct DashboardView {
pub title: String,
pub stats: Vec<StatCard>,
pub quick_actions: Vec<QuickAction>,
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
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
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 (const: unstable) · 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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<R, D> DepsPresent<D> for R
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging