pub struct ActionSpec {
pub caption: LitStr,
pub id: Option<LitStr>,
pub selection: Option<SelectionSpec>,
pub enabled: Option<LitStr>,
pub set: LitStr,
pub confirm: Option<LitStr>,
}Expand description
#[action(...)] on a struct: an action that sets fields of the records selected.
Fields§
§caption: LitStrcaption = "...".
id: Option<LitStr>id = "...".
selection: Option<SelectionSpec>selection = "one" | "many" | "any".
enabled: Option<LitStr>enabled = "...", checked to parse and to name only fields of the struct.
set: LitStrset = "field = expression; ...", checked the same way.
confirm: Option<LitStr>confirm = "...".
Trait Implementations§
Source§impl Clone for ActionSpec
impl Clone for ActionSpec
Source§fn clone(&self) -> ActionSpec
fn clone(&self) -> ActionSpec
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 ActionSpec
impl !Sync for ActionSpec
impl Freeze for ActionSpec
impl RefUnwindSafe for ActionSpec
impl Unpin for ActionSpec
impl UnsafeUnpin for ActionSpec
impl UnwindSafe for ActionSpec
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