pub struct ListContext {Show 27 fields
pub admin_title: String,
pub admin_icon: String,
pub entities: Vec<EntityRef>,
pub nav: Vec<NavItem>,
pub current_entity: String,
pub entity_name: String,
pub entity_label: String,
pub columns: Vec<String>,
pub column_types: HashMap<String, String>,
pub rows: Vec<RowContext>,
pub actions: Vec<ActionContext>,
pub search: String,
pub page: u64,
pub total_pages: u64,
pub order_by: String,
pub order_dir: String,
pub filter_fields: Vec<FieldContext>,
pub active_filters: HashMap<String, String>,
pub bulk_delete: bool,
pub bulk_export: bool,
pub export_columns: Vec<(String, String)>,
pub flash_success: Option<String>,
pub flash_error: Option<String>,
pub can_create: bool,
pub can_edit: bool,
pub can_delete: bool,
pub show_auth_nav: bool,
}Fields§
§admin_title: String§admin_icon: String§entities: Vec<EntityRef>§current_entity: String§entity_name: String§entity_label: String§columns: Vec<String>§column_types: HashMap<String, String>§rows: Vec<RowContext>§actions: Vec<ActionContext>§search: String§page: u64§total_pages: u64§order_by: String§order_dir: String§filter_fields: Vec<FieldContext>§active_filters: HashMap<String, String>§bulk_delete: bool§bulk_export: bool§export_columns: Vec<(String, String)>§flash_success: Option<String>§flash_error: Option<String>§can_create: bool§can_edit: bool§can_delete: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for ListContext
impl RefUnwindSafe for ListContext
impl Send for ListContext
impl Sync for ListContext
impl Unpin for ListContext
impl UnsafeUnpin for ListContext
impl UnwindSafe for ListContext
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