pub struct BulkCategorizeState {
pub selected_category: Option<CategoryId>,
pub category_list_index: usize,
pub search_input: String,
pub search_cursor: usize,
pub error_message: Option<String>,
pub success_message: Option<String>,
}Expand description
State for the bulk categorize dialog
Fields§
§selected_category: Option<CategoryId>Selected category
category_list_index: usizeIndex in the category list
search_input: StringSearch/filter input
search_cursor: usizeSearch cursor position
error_message: Option<String>Error message
success_message: Option<String>Success message
Implementations§
Source§impl BulkCategorizeState
impl BulkCategorizeState
pub fn new() -> Self
Sourcepub fn clear_error(&mut self)
pub fn clear_error(&mut self)
Clear error message
Sourcepub fn set_success(&mut self, msg: impl Into<String>)
pub fn set_success(&mut self, msg: impl Into<String>)
Set success message
Sourcepub fn insert_char(&mut self, c: char)
pub fn insert_char(&mut self, c: char)
Insert character at cursor
Sourcepub fn clear_search(&mut self)
pub fn clear_search(&mut self)
Clear search
Trait Implementations§
Source§impl Clone for BulkCategorizeState
impl Clone for BulkCategorizeState
Source§fn clone(&self) -> BulkCategorizeState
fn clone(&self) -> BulkCategorizeState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BulkCategorizeState
impl Debug for BulkCategorizeState
Source§impl Default for BulkCategorizeState
impl Default for BulkCategorizeState
Source§fn default() -> BulkCategorizeState
fn default() -> BulkCategorizeState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BulkCategorizeState
impl RefUnwindSafe for BulkCategorizeState
impl Send for BulkCategorizeState
impl Sync for BulkCategorizeState
impl Unpin for BulkCategorizeState
impl UnwindSafe for BulkCategorizeState
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,
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