pub struct SnippetHostPick {
pub purpose: SnippetHostPickPurpose,
pub selected: HashSet<String>,
pub list_state: ListState,
pub query: String,
pub filtering: bool,
}Expand description
Picker half for the snippet -> hosts run flow. Mirrors the picker fields of
KeyPushState; snippets carry no worker state of their own because
execution reuses the existing snippet output machinery.
Fields§
§purpose: SnippetHostPickPurposeWhy the picker is open (run now vs set the edit form’s default hosts).
selected: HashSet<String>Aliases toggled in Screen::SnippetHostPicker. Frozen into
flow_targets on Enter.
list_state: ListStateCursor in the picker’s host list.
query: StringApplied type-to-filter query. Empty means no filter (grouped browse).
filtering: boolWhether keystrokes currently edit query (filter mode entered via /)
rather than acting as selection commands.
Implementations§
Trait Implementations§
Source§impl Default for SnippetHostPick
impl Default for SnippetHostPick
Source§fn default() -> SnippetHostPick
fn default() -> SnippetHostPick
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SnippetHostPick
impl RefUnwindSafe for SnippetHostPick
impl Send for SnippetHostPick
impl Sync for SnippetHostPick
impl Unpin for SnippetHostPick
impl UnsafeUnpin for SnippetHostPick
impl UnwindSafe for SnippetHostPick
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> 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