pub struct SmartMenu { /* private fields */ }Expand description
Analyzes workspace state to provide smart menu options
Implementations§
Source§impl SmartMenu
impl SmartMenu
Sourcepub async fn new(workspace_manager: &WorkspaceManager) -> Result<Self>
pub async fn new(workspace_manager: &WorkspaceManager) -> Result<Self>
Create a new smart menu analyzer
Sourcepub fn get_smart_actions(&self) -> Vec<SmartAction>
pub fn get_smart_actions(&self) -> Vec<SmartAction>
Get smart actions based on current context
Sourcepub fn get_quick_launch_items(&self) -> Vec<QuickLaunchItem>
pub fn get_quick_launch_items(&self) -> Vec<QuickLaunchItem>
Get quick launch items (recent repositories)
Sourcepub fn should_show_setup_wizard(&self) -> bool
pub fn should_show_setup_wizard(&self) -> bool
Check if setup wizard should be shown
Sourcepub fn get_smart_open_actions(
&self,
workspace_manager: &WorkspaceManager,
) -> Vec<SmartAction>
pub fn get_smart_open_actions( &self, workspace_manager: &WorkspaceManager, ) -> Vec<SmartAction>
Get smart open actions (open repo with any available app)
Auto Trait Implementations§
impl Freeze for SmartMenu
impl RefUnwindSafe for SmartMenu
impl Send for SmartMenu
impl Sync for SmartMenu
impl Unpin for SmartMenu
impl UnsafeUnpin for SmartMenu
impl UnwindSafe for SmartMenu
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