#[non_exhaustive]pub struct ListEditorRequest {
pub session: Session,
pub view: ViewInfo,
pub entity: EntityInfo,
pub columns: Vec<(FieldInfo, String)>,
pub objects: Rc<Vec<Object>>,
pub on_open: OpenHandler,
pub on_select: Rc<dyn Fn(Vec<Object>)>,
}Expand description
What a list editor is asked to show: the records as the list reads them, and how to act on them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session: SessionThe application it lives in.
view: ViewInfoThe view it shows.
entity: EntityInfoThe entity of the records.
columns: Vec<(FieldInfo, String)>The fields the list shows, with what their columns say.
objects: Rc<Vec<Object>>The records, in the list’s order.
on_open: OpenHandlerOpens a record, by its key.
on_select: Rc<dyn Fn(Vec<Object>)>Says which records are selected, which turns actions on and off.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ListEditorRequest
impl !Send for ListEditorRequest
impl !Sync for ListEditorRequest
impl !UnwindSafe for ListEditorRequest
impl Freeze for ListEditorRequest
impl Unpin for ListEditorRequest
impl UnsafeUnpin for ListEditorRequest
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