pub struct DiscoveredExtension {
pub enabled: bool,
pub id: String,
pub name: String,
pub path: String,
pub plugin: Option<DiscoveredExtensionPlugin>,
pub source: DiscoveredExtensionSource,
}Expand description
Discovered extension metadata and persistent enablement state.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§enabled: boolWhether this extension’s persistent per-ID preference is enabled
id: StringSource-qualified ID accepted by both server and session extension enablement methods
name: StringHuman-readable extension name
path: StringAbsolute path to the extension entry module, suitable for revealing it in a file manager
plugin: Option<DiscoveredExtensionPlugin>Containing plugin metadata for plugin-contributed extensions
source: DiscoveredExtensionSourceDiscovery source
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 (const: unstable) · 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 DiscoveredExtension
impl Debug for DiscoveredExtension
Source§impl Default for DiscoveredExtension
impl Default for DiscoveredExtension
Source§fn default() -> DiscoveredExtension
fn default() -> DiscoveredExtension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiscoveredExtension
impl<'de> Deserialize<'de> for DiscoveredExtension
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
Auto Trait Implementations§
impl Freeze for DiscoveredExtension
impl RefUnwindSafe for DiscoveredExtension
impl Send for DiscoveredExtension
impl Sync for DiscoveredExtension
impl Unpin for DiscoveredExtension
impl UnsafeUnpin 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