pub struct SkillsStore {
pub skills: Vec<SkillSummary>,
pub selected_skill: Option<SkillDetail>,
pub loading: bool,
pub detail_loading: bool,
pub error: Option<String>,
pub search_query: String,
pub status_filter: Option<SkillStatus>,
pub source_filter: Option<String>,
pub runtime_filter: Option<SkillRuntime>,
pub sort_by: SkillSortBy,
pub sort_ascending: bool,
}Expand description
Skills store state
Fields§
§skills: Vec<SkillSummary>List of installed skills
selected_skill: Option<SkillDetail>Currently selected skill (for detail view)
loading: boolWhether skills are being loaded
detail_loading: boolWhether a skill detail is being loaded
error: Option<String>Error message if loading failed
search_query: StringSearch query
status_filter: Option<SkillStatus>Selected filters
source_filter: Option<String>§runtime_filter: Option<SkillRuntime>§sort_by: SkillSortBySort order
sort_ascending: boolImplementations§
Source§impl SkillsStore
impl SkillsStore
Sourcepub fn filtered_skills(&self) -> Vec<&SkillSummary>
pub fn filtered_skills(&self) -> Vec<&SkillSummary>
Get filtered and sorted skills based on current search and filters
Sourcepub fn get_skill(&self, name: &str) -> Option<&SkillSummary>
pub fn get_skill(&self, name: &str) -> Option<&SkillSummary>
Get skill by name
Sourcepub fn total_count(&self) -> usize
pub fn total_count(&self) -> usize
Get total skills count
Sourcepub fn filtered_count(&self) -> usize
pub fn filtered_count(&self) -> usize
Get count of filtered skills
Trait Implementations§
Source§impl Clone for SkillsStore
impl Clone for SkillsStore
Source§fn clone(&self) -> SkillsStore
fn clone(&self) -> SkillsStore
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 SkillsStore
impl Debug for SkillsStore
Source§impl Default for SkillsStore
impl Default for SkillsStore
Source§fn default() -> SkillsStore
fn default() -> SkillsStore
Returns the “default value” for a type. Read more
Source§impl PartialEq for SkillsStore
impl PartialEq for SkillsStore
Source§impl Reducer<SkillsStore> for SkillsAction
impl Reducer<SkillsStore> for SkillsAction
Source§fn apply(self, store: Rc<SkillsStore>) -> Rc<SkillsStore>
fn apply(self, store: Rc<SkillsStore>) -> Rc<SkillsStore>
Mutate state.
Source§impl Store for SkillsStore
impl Store for SkillsStore
impl StructuralPartialEq for SkillsStore
Auto Trait Implementations§
impl Freeze for SkillsStore
impl RefUnwindSafe for SkillsStore
impl Send for SkillsStore
impl Sync for SkillsStore
impl Unpin for SkillsStore
impl UnwindSafe for SkillsStore
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.