pub struct ObjectSpec {
pub name: Ident,
pub settings: ObjectSettings,
pub fields: Vec<FieldSpec>,
pub rules: Vec<RuleSpec>,
pub appearance: Vec<AppearanceSpec>,
pub choices: Vec<ChoiceSpec>,
pub actions: Vec<ActionSpec>,
}Expand description
A struct with #[derive(BusinessObject)].
Fields§
§name: IdentIts name in the code.
settings: ObjectSettingsWhat its attribute says.
fields: Vec<FieldSpec>Its fields, in order.
rules: Vec<RuleSpec>The rules of the fields, in their order, then those of the struct.
appearance: Vec<AppearanceSpec>Its appearance rules.
choices: Vec<ChoiceSpec>Its view variants and list filters.
actions: Vec<ActionSpec>Its actions, from #[action(...)].
Trait Implementations§
Source§impl Clone for ObjectSpec
impl Clone for ObjectSpec
Source§fn clone(&self) -> ObjectSpec
fn clone(&self) -> ObjectSpec
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 moreAuto Trait Implementations§
impl !Send for ObjectSpec
impl !Sync for ObjectSpec
impl Freeze for ObjectSpec
impl RefUnwindSafe for ObjectSpec
impl Unpin for ObjectSpec
impl UnsafeUnpin for ObjectSpec
impl UnwindSafe for ObjectSpec
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