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>,
pub default_show_aside: bool,
pub inline_edit: bool,
}Fields§
§entity_name: String§primary_key: String§fields: &'static [ActixAdminViewModelField]§show_search: bool§user_can_access: Option<fn(&Session) -> bool>§default_show_aside: bool§inline_edit: boolTrait Implementations§
Source§impl Clone for ActixAdminViewModel
impl Clone for ActixAdminViewModel
Source§fn clone(&self) -> ActixAdminViewModel
fn clone(&self) -> ActixAdminViewModel
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 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.
Auto Trait Implementations§
impl Freeze for ActixAdminViewModel
impl RefUnwindSafe for ActixAdminViewModel
impl Send for ActixAdminViewModel
impl Sync for ActixAdminViewModel
impl Unpin for ActixAdminViewModel
impl UnwindSafe for ActixAdminViewModel
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