pub struct FieldContext {
pub name: String,
pub label: String,
pub field_type: String,
pub readonly: bool,
pub hidden: bool,
pub list_only: bool,
pub form_only: bool,
pub required: bool,
pub help_text: Option<String>,
pub options: Vec<(String, String)>,
pub selected_ids: Vec<String>,
pub accept: Vec<String>,
}Fields§
§name: String§label: String§field_type: String§readonly: bool§list_only: bool§form_only: bool§required: bool§help_text: Option<String>§options: Vec<(String, String)>§selected_ids: Vec<String>Populated for ManyToMany fields: the IDs currently selected for this record.
accept: Vec<String>Populated for File fields: the accepted MIME types (e.g. [“application/pdf”]).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldContext
impl RefUnwindSafe for FieldContext
impl Send for FieldContext
impl Sync for FieldContext
impl Unpin for FieldContext
impl UnsafeUnpin for FieldContext
impl UnwindSafe for FieldContext
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