pub struct TabnineAgent { /* private fields */ }Expand description
Tabnine CLI installer.
Implementations§
Source§impl TabnineAgent
impl TabnineAgent
Trait Implementations§
Source§impl Clone for TabnineAgent
impl Clone for TabnineAgent
Source§fn clone(&self) -> TabnineAgent
fn clone(&self) -> TabnineAgent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TabnineAgent
Source§impl Debug for TabnineAgent
impl Debug for TabnineAgent
Source§impl Default for TabnineAgent
impl Default for TabnineAgent
Source§fn default() -> TabnineAgent
fn default() -> TabnineAgent
Returns the “default value” for a type. Read more
Source§impl Integration for TabnineAgent
impl Integration for TabnineAgent
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Human-readable name (e.g.,
"Claude Code").Source§fn supported_scopes(&self) -> &'static [ScopeKind]
fn supported_scopes(&self) -> &'static [ScopeKind]
Which scopes this integration accepts.
Source§fn status(
&self,
scope: &Scope,
tag: &str,
) -> Result<StatusReport, AgentConfigError>
fn status( &self, scope: &Scope, tag: &str, ) -> Result<StatusReport, AgentConfigError>
Detailed installation state for the hook identified by
tag. Read moreSource§fn plan_install(
&self,
scope: &Scope,
spec: &HookSpec,
) -> Result<InstallPlan, AgentConfigError>
fn plan_install( &self, scope: &Scope, spec: &HookSpec, ) -> Result<InstallPlan, AgentConfigError>
Plan a hook install without mutating user files. Read more
Source§fn plan_uninstall(
&self,
scope: &Scope,
tag: &str,
) -> Result<UninstallPlan, AgentConfigError>
fn plan_uninstall( &self, scope: &Scope, tag: &str, ) -> Result<UninstallPlan, AgentConfigError>
Plan a hook uninstall without mutating user files. Read more
Source§fn install(
&self,
scope: &Scope,
spec: &HookSpec,
) -> Result<InstallReport, AgentConfigError>
fn install( &self, scope: &Scope, spec: &HookSpec, ) -> Result<InstallReport, AgentConfigError>
Install the hook. Repeated calls with the same
spec.tag are a no-op
after the first (the on-disk state is reached, then preserved). Read moreSource§fn uninstall(
&self,
scope: &Scope,
tag: &str,
) -> Result<UninstallReport, AgentConfigError>
fn uninstall( &self, scope: &Scope, tag: &str, ) -> Result<UninstallReport, AgentConfigError>
Uninstall the hook identified by
tag. Restores .bak files when
removing our content leaves the target file empty or pristine. Read moreSource§fn is_installed(
&self,
scope: &Scope,
tag: &str,
) -> Result<bool, AgentConfigError>
fn is_installed( &self, scope: &Scope, tag: &str, ) -> Result<bool, AgentConfigError>
Returns true if a hook with this
tag is currently installed in this
scope. Used by CLI consumers to render install/uninstall state. Read moreSource§fn validate(
&self,
scope: &Scope,
tag: &str,
) -> Result<ValidationReport, AgentConfigError>
fn validate( &self, scope: &Scope, tag: &str, ) -> Result<ValidationReport, AgentConfigError>
Validate hook state without mutating user files. Read more
Source§fn migrate(
&self,
_scope: &Scope,
_tag: &str,
) -> Result<MigrationReport, AgentConfigError>
fn migrate( &self, _scope: &Scope, _tag: &str, ) -> Result<MigrationReport, AgentConfigError>
Migrate any prior layout produced by an earlier version of the consumer
(e.g., remove a legacy shell-script wrapper that has since been
superseded by a native binary). Default impl is a no-op. Read more
Source§impl McpSurface for TabnineAgent
impl McpSurface for TabnineAgent
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable, kebab-case identifier matching
Integration::id for the same
agent (e.g., "claude").Source§fn supported_mcp_scopes(&self) -> &'static [ScopeKind]
fn supported_mcp_scopes(&self) -> &'static [ScopeKind]
Which scopes this MCP installer accepts.
Source§fn mcp_status(
&self,
scope: &Scope,
name: &str,
expected_owner: &str,
) -> Result<StatusReport, AgentConfigError>
fn mcp_status( &self, scope: &Scope, name: &str, expected_owner: &str, ) -> Result<StatusReport, AgentConfigError>
Detailed installation state for the MCP server identified by
name,
scored against expected_owner. Read moreSource§fn plan_install_mcp(
&self,
scope: &Scope,
spec: &McpSpec,
) -> Result<InstallPlan, AgentConfigError>
fn plan_install_mcp( &self, scope: &Scope, spec: &McpSpec, ) -> Result<InstallPlan, AgentConfigError>
Plan an MCP server install without mutating user files. Read more
Source§fn plan_uninstall_mcp(
&self,
scope: &Scope,
name: &str,
owner_tag: &str,
) -> Result<UninstallPlan, AgentConfigError>
fn plan_uninstall_mcp( &self, scope: &Scope, name: &str, owner_tag: &str, ) -> Result<UninstallPlan, AgentConfigError>
Plan an MCP server uninstall without mutating user files. Read more
Source§fn install_mcp(
&self,
scope: &Scope,
spec: &McpSpec,
) -> Result<InstallReport, AgentConfigError>
fn install_mcp( &self, scope: &Scope, spec: &McpSpec, ) -> Result<InstallReport, AgentConfigError>
Install (or update) the MCP server. Repeated calls with the same
spec.name and same content are a no-op after the first. Read moreSource§fn uninstall_mcp(
&self,
scope: &Scope,
name: &str,
owner_tag: &str,
) -> Result<UninstallReport, AgentConfigError>
fn uninstall_mcp( &self, scope: &Scope, name: &str, owner_tag: &str, ) -> Result<UninstallReport, AgentConfigError>
Source§fn is_mcp_installed(
&self,
scope: &Scope,
name: &str,
) -> Result<bool, AgentConfigError>
fn is_mcp_installed( &self, scope: &Scope, name: &str, ) -> Result<bool, AgentConfigError>
Returns true if a server with
name is currently recorded under any
owner in this scope’s ownership ledger. Read moreSource§fn validate_mcp(
&self,
scope: &Scope,
name: &str,
) -> Result<ValidationReport, AgentConfigError>
fn validate_mcp( &self, scope: &Scope, name: &str, ) -> Result<ValidationReport, AgentConfigError>
Validate MCP state without mutating user files. Read more
Source§fn validate_mcp_for_owner(
&self,
scope: &Scope,
name: &str,
expected_owner: Option<&str>,
) -> Result<ValidationReport, AgentConfigError>
fn validate_mcp_for_owner( &self, scope: &Scope, name: &str, expected_owner: Option<&str>, ) -> Result<ValidationReport, AgentConfigError>
Validate MCP state against a caller-supplied expected owner. Read more
Auto Trait Implementations§
impl Freeze for TabnineAgent
impl RefUnwindSafe for TabnineAgent
impl Send for TabnineAgent
impl Sync for TabnineAgent
impl Unpin for TabnineAgent
impl UnsafeUnpin for TabnineAgent
impl UnwindSafe for TabnineAgent
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