pub struct RefSelectState {
pub feature_id: String,
pub path: Vec<String>,
pub label: String,
pub filter: Vec<String>,
pub multiple: bool,
pub names: Vec<String>,
pub restore_index: usize,
pub target: RefSelectTarget,
}Expand description
The modal state of the reference-selection widget while it is ACTIVE: which feature-dialog field is being filled, what it accepts, and the running list of picked kernel names (the source of truth — added by picking in the view, removed via the per-line X). See the ref-select methods below.
Fields§
§feature_id: StringThe id of the feature whose param is being edited.
path: Vec<String>The JSON path into that feature’s inputParams the names write to
(["targetSolid"], ["boolean","targets"], ["faceRef"], …).
label: StringA human label for the modal heading (the field’s label).
filter: Vec<String>The allowed pick kinds (["SOLID"], ["FACE"], …) — the type constraint.
multiple: boolWhether the field takes a LIST of references (else a single one).
names: Vec<String>The picked kernel names — the running selection (source of truth).
restore_index: usizeThe rollback step to restore on Finish/Cancel (the edited feature’s own step): entering the mode rolls to the pre-feature “before” state, so we remember where to return.
target: RefSelectTargetWhich surface Finish commits the names to (feature params vs an
assembly constraint’s inputParams). Defaults to RefSelectTarget::Feature.
Trait Implementations§
Source§impl Clone for RefSelectState
impl Clone for RefSelectState
Source§fn clone(&self) -> RefSelectState
fn clone(&self) -> RefSelectState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RefSelectState
impl Debug for RefSelectState
Source§impl Default for RefSelectState
impl Default for RefSelectState
Source§fn default() -> RefSelectState
fn default() -> RefSelectState
Auto Trait Implementations§
impl Freeze for RefSelectState
impl RefUnwindSafe for RefSelectState
impl Send for RefSelectState
impl Sync for RefSelectState
impl Unpin for RefSelectState
impl UnsafeUnpin for RefSelectState
impl UnwindSafe for RefSelectState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more