pub struct DiscoveredExtension {
pub manifest: ExtensionManifest,
pub path: PathBuf,
pub manifest_path: PathBuf,
}Fields§
§manifest: ExtensionManifest§path: PathBuf§manifest_path: PathBufImplementations§
Source§impl DiscoveredExtension
impl DiscoveredExtension
pub const fn new( manifest: ExtensionManifest, path: PathBuf, manifest_path: PathBuf, ) -> Self
pub const fn extension_type(&self) -> ExtensionType
pub fn binary_name(&self) -> Option<&str>
pub const fn is_enabled(&self) -> bool
pub fn is_mcp(&self) -> bool
pub fn is_cli(&self) -> bool
pub fn commands(&self) -> &[CliCommand]
pub const fn build_type(&self) -> BuildType
Trait Implementations§
Source§impl Clone for DiscoveredExtension
impl Clone for DiscoveredExtension
Source§fn clone(&self) -> DiscoveredExtension
fn clone(&self) -> DiscoveredExtension
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 moreAuto Trait Implementations§
impl Freeze for DiscoveredExtension
impl RefUnwindSafe for DiscoveredExtension
impl Send for DiscoveredExtension
impl Sync for DiscoveredExtension
impl Unpin for DiscoveredExtension
impl UnwindSafe for DiscoveredExtension
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