Skip to main content

PluginInfo

Struct PluginInfo 

Source
pub struct PluginInfo {
Show 29 fields pub id: String, pub name: String, pub version: String, pub description: String, pub icon: String, pub scope: PluginScope, pub origin: PluginOrigin, pub dir: String, pub enabled: bool, pub enabled_from: Level, pub trusted: bool, pub declined: bool, pub shadowed_by: Option<PluginScope>, pub tools: Vec<String>, pub skills: Vec<String>, pub agents: Vec<String>, pub commands: Vec<String>, pub servers: Vec<ServerInfo>, pub backend: Option<BackendInfo>, pub views: Vec<ViewDecl>, pub settings: Vec<PluginSetting>, pub network: bool, pub problems: Vec<String>, pub last_error: Option<String>, pub fingerprint: String, pub locked: bool, pub renderers: Vec<RendererDecl>, pub starters: Vec<StarterDecl>, pub superseded_by: Option<String>,
}
Expand description

One plugin a chat can see.

Fields§

§id: String§name: String§version: String§description: String§icon: String

A lucide icon name.

§scope: PluginScope§origin: PluginOrigin§dir: String

Its folder on the engine’s machine, for display.

§enabled: bool

Switched on for this chat (the plugin switches, global → workspace → chat).

§enabled_from: Level

The level whose switch decides Self::enabled (Default: nobody switched it; on).

§trusted: bool

Its tools and servers may run. False for a PluginOrigin::Repo plugin until the user trusts it (crate::ClientMsg::TrustPlugins); until then only its skills, prompt line and subagents are used.

§declined: bool

The user declined to trust it (not asked again).

§shadowed_by: Option<PluginScope>

A plugin with the same id in a more specific scope is used instead of this one.

§tools: Vec<String>

Tool names as the model sees them (Python tools and MCP tools), when in use.

§skills: Vec<String>§agents: Vec<String>

Subagent names.

§commands: Vec<String>

Slash commands (commands/*.md, Claude Code’s format).

§servers: Vec<ServerInfo>§backend: Option<BackendInfo>

Its backend process, if it declares one.

§views: Vec<ViewDecl>

The views it declares (13.3+), shown at their sites while it is on (see crate::sites).

§settings: Vec<PluginSetting>§network: bool

Its tools may use the internet (permissions.network).

§problems: Vec<String>

What doesn’t work (a missing script, a bad skill, a missing setting); the parts that work are still used. Messages are the loader’s, for the plugin’s author.

§last_error: Option<String>

The last failed run of one of its tools in this engine run.

§fingerprint: String

Changes whenever a file of the plugin changes (hex).

§locked: bool

Always on: its switch can’t turn it off (13.4+; core bundled plugins and their forks).

§renderers: Vec<RendererDecl>

Which renderer draws a content type while it is on (13.4+).

§starters: Vec<StarterDecl>

Prompt suggestions for an empty chat (13.4+).

§superseded_by: Option<String>

Switched on, but another switched-on plugin providing the same thing (its id) is used instead (13.7+; manifest provides): this one contributes nothing until one of them is switched off.

Implementations§

Source§

impl PluginInfo

Source

pub fn in_use(&self) -> bool

This copy is the one in use when switched on: not shadowed by a more specific copy, not superseded by another plugin providing the same thing.

Trait Implementations§

Source§

impl Clone for PluginInfo

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PluginInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PluginInfo

Source§

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 Eq for PluginInfo

Source§

impl PartialEq for PluginInfo

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for PluginInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PluginInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.