Struct actix_admin::view_model::ActixAdminViewModel
source · pub struct ActixAdminViewModel {
pub entity_name: String,
pub primary_key: String,
pub fields: &'static [ActixAdminViewModelField],
pub show_search: bool,
pub user_can_access: Option<fn(_: &Session) -> bool>,
}Fields§
§entity_name: String§primary_key: String§fields: &'static [ActixAdminViewModelField]§show_search: bool§user_can_access: Option<fn(_: &Session) -> bool>Trait Implementations§
source§impl Clone for ActixAdminViewModel
impl Clone for ActixAdminViewModel
source§fn clone(&self) -> ActixAdminViewModel
fn clone(&self) -> ActixAdminViewModel
Returns a copy 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 From<ActixAdminViewModel> for ActixAdminViewModelSerializable
impl From<ActixAdminViewModel> for ActixAdminViewModelSerializable
source§fn from(entity: ActixAdminViewModel) -> Self
fn from(entity: ActixAdminViewModel) -> Self
Converts to this type from the input type.