pub struct BuilderUi {
pub preset_options: Vec<String>,
pub preset_index: usize,
pub focus: BuilderFocus,
pub filter_selected: usize,
pub input_mode: InputMode,
pub input_buf: String,
pub field_matches: Vec<FieldDef>,
pub field_pick: usize,
pub op_index: usize,
pub draft_field: Option<String>,
}Expand description
Builder pane UI state (not sent to the API until refresh).
Fields§
§preset_options: Vec<String>Sorted preset names for the current asset (includes (defaults)).
preset_index: usizeIndex into Self::preset_options.
focus: BuilderFocusHighlighted builder row.
filter_selected: usizeSelected filter row (d removes this one).
input_mode: InputModeActive text input, if any.
input_buf: StringBuffer for search / field query / filter value.
field_matches: Vec<FieldDef>Field catalog hits while adding a filter.
field_pick: usizeSelected index in Self::field_matches.
op_index: usizeIndex into FILTER_OPS while adding a filter.
draft_field: Option<String>Draft field name between field pick and value entry.
Implementations§
Source§impl BuilderUi
impl BuilderUi
Sourcepub fn from_config(config: &ScanConfig) -> Self
pub fn from_config(config: &ScanConfig) -> Self
Builds picker state from scan config.
Sourcepub fn sync_preset_index(&mut self, config: &ScanConfig)
pub fn sync_preset_index(&mut self, config: &ScanConfig)
Refreshes preset list and index after the config asset or preset changes.
Sourcepub fn refresh_field_matches(&mut self, asset: Asset)
pub fn refresh_field_matches(&mut self, asset: Asset)
Updates field matches from the current query buffer.
Sourcepub fn cancel_input(&mut self)
pub fn cancel_input(&mut self)
Clears filter-add wizard state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuilderUi
impl RefUnwindSafe for BuilderUi
impl Send for BuilderUi
impl Sync for BuilderUi
impl Unpin for BuilderUi
impl UnsafeUnpin for BuilderUi
impl UnwindSafe for BuilderUi
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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