pub enum ClientType {
Claude,
Cursor,
Windsurf,
Vscode,
}Expand description
Supported AI coding clients.
Variants§
Claude
Claude Desktop / Claude Code
Cursor
Cursor IDE
Windsurf
Windsurf IDE
Vscode
VS Code with MCP extensions
Implementations§
Source§impl ClientType
impl ClientType
Sourcepub fn all() -> &'static [ClientType]
pub fn all() -> &'static [ClientType]
Returns all supported client types.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Returns the display name of the client.
Sourcepub fn home_dir(&self) -> Option<PathBuf>
pub fn home_dir(&self) -> Option<PathBuf>
Returns the home directory path for this client.
Returns None if the home directory cannot be determined.
Sourcepub fn mcp_config_paths(&self) -> Vec<PathBuf>
pub fn mcp_config_paths(&self) -> Vec<PathBuf>
Returns the MCP configuration file paths for this client.
Sourcepub fn settings_config_paths(&self) -> Vec<PathBuf>
pub fn settings_config_paths(&self) -> Vec<PathBuf>
Returns the settings/hooks configuration file paths for this client.
Sourcepub fn is_installed(&self) -> bool
pub fn is_installed(&self) -> bool
Checks if this client is installed on the system.
Sourcepub fn all_config_paths(&self) -> Vec<PathBuf>
pub fn all_config_paths(&self) -> Vec<PathBuf>
Returns all scannable paths for this client (MCP + settings).
Trait Implementations§
Source§impl Clone for ClientType
impl Clone for ClientType
Source§fn clone(&self) -> ClientType
fn clone(&self) -> ClientType
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 ClientType
impl Debug for ClientType
Source§impl<'de> Deserialize<'de> for ClientType
impl<'de> Deserialize<'de> for ClientType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ClientType
impl Display for ClientType
Source§impl FromStr for ClientType
impl FromStr for ClientType
Source§impl Hash for ClientType
impl Hash for ClientType
Source§impl PartialEq for ClientType
impl PartialEq for ClientType
Source§impl Serialize for ClientType
impl Serialize for ClientType
Source§impl ValueEnum for ClientType
impl ValueEnum for ClientType
impl Copy for ClientType
impl Eq for ClientType
impl StructuralPartialEq for ClientType
Auto Trait Implementations§
impl Freeze for ClientType
impl RefUnwindSafe for ClientType
impl Send for ClientType
impl Sync for ClientType
impl Unpin for ClientType
impl UnwindSafe for ClientType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.