pub struct ObjectSettings {
pub caption: Option<LitStr>,
pub navigation: Option<LitStr>,
pub icon: Option<LitStr>,
pub list_criteria: Option<LitStr>,
pub form_columns: Option<LitInt>,
pub cloneable: bool,
pub transient: bool,
pub checks_on_leave: bool,
pub list_editable: bool,
pub data_access: Option<DataAccessSpec>,
pub form_actions: Vec<LitStr>,
pub focus_order: Vec<String>,
}Expand description
#[object(...)] on a struct.
Fields§
§caption: Option<LitStr>caption = "...".
navigation = "...".
icon: Option<LitStr>icon = "...".
list_criteria: Option<LitStr>list_criteria = "...", checked to parse.
form_columns: Option<LitInt>form_columns = 2.
cloneable: boolcloneable.
transient: booltransient.
checks_on_leave: boolchecks_on_leave.
list_editable: boollist_editable.
data_access: Option<DataAccessSpec>data_access = "client" | "server" | "data_view".
form_actions: Vec<LitStr>form_actions = "...", as many as given.
focus_order: Vec<String>focus_order = "a,b", as field names, checked against the struct.
Trait Implementations§
Source§impl Clone for ObjectSettings
impl Clone for ObjectSettings
Source§fn clone(&self) -> ObjectSettings
fn clone(&self) -> ObjectSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectSettings
impl Debug for ObjectSettings
Source§impl Default for ObjectSettings
impl Default for ObjectSettings
Source§fn default() -> ObjectSettings
fn default() -> ObjectSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Send for ObjectSettings
impl !Sync for ObjectSettings
impl Freeze for ObjectSettings
impl RefUnwindSafe for ObjectSettings
impl Unpin for ObjectSettings
impl UnsafeUnpin for ObjectSettings
impl UnwindSafe for ObjectSettings
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