pub struct FormContext {Show 17 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 fields: Vec<FieldContext>,
pub values: HashMap<String, String>,
pub errors: HashMap<String, String>,
pub is_create: bool,
pub record_id: String,
pub csrf_token: String,
pub flash_success: Option<String>,
pub flash_error: Option<String>,
pub can_save: 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§fields: Vec<FieldContext>§values: HashMap<String, String>§errors: HashMap<String, String>§is_create: bool§record_id: String§csrf_token: String§flash_success: Option<String>§flash_error: Option<String>§can_save: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for FormContext
impl RefUnwindSafe for FormContext
impl Send for FormContext
impl Sync for FormContext
impl Unpin for FormContext
impl UnsafeUnpin for FormContext
impl UnwindSafe for FormContext
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