pub struct ExclusionManager { /* private fields */ }Expand description
Exclusion patterns manager
Manages intelligent exclusion patterns based on gitignore templates and project auto-detection capabilities
Implementations§
Source§impl ExclusionManager
impl ExclusionManager
Sourcepub async fn enable_templates_for_project(
&mut self,
project_path: &Path,
) -> Result<()>
pub async fn enable_templates_for_project( &mut self, project_path: &Path, ) -> Result<()>
Enable templates based on project detection
Sourcepub async fn get_exclusion_patterns(&self) -> Vec<String>
pub async fn get_exclusion_patterns(&self) -> Vec<String>
Get all exclusion patterns (folders and files)
Sourcepub async fn get_folder_patterns(&self) -> HashSet<String>
pub async fn get_folder_patterns(&self) -> HashSet<String>
Get folder exclusion patterns
Sourcepub async fn get_extension_patterns(&self) -> HashSet<String>
pub async fn get_extension_patterns(&self) -> HashSet<String>
Get file extension exclusion patterns
Sourcepub fn get_enabled_templates(&self) -> Vec<&str>
pub fn get_enabled_templates(&self) -> Vec<&str>
Get list of enabled templates
Sourcepub fn enable_template(&mut self, template_key: String)
pub fn enable_template(&mut self, template_key: String)
Enable specific template
Sourcepub fn disable_template(&mut self, template_key: &str) -> bool
pub fn disable_template(&mut self, template_key: &str) -> bool
Disable specific template
Sourcepub async fn force_update_templates(&self) -> Result<()>
pub async fn force_update_templates(&self) -> Result<()>
Force update templates
Sourcepub async fn get_available_templates(&self) -> Vec<String>
pub async fn get_available_templates(&self) -> Vec<String>
Get available templates
Sourcepub async fn set_check_internet(&self, check: bool) -> Result<()>
pub async fn set_check_internet(&self, check: bool) -> Result<()>
Set internet connectivity checking
Auto Trait Implementations§
impl Freeze for ExclusionManager
impl !RefUnwindSafe for ExclusionManager
impl Send for ExclusionManager
impl Sync for ExclusionManager
impl Unpin for ExclusionManager
impl !UnwindSafe for ExclusionManager
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