pub struct PluginsConfig {
pub dir: Option<PathBuf>,
pub enabled: Vec<String>,
pub mcp_timeout_secs: Option<u64>,
}Expand description
[plugins]: where plugins live and which ones may load.
Fields§
§dir: Option<PathBuf>Root of the shared plugin directory (default <config_dir>/plugins). A profile’s
own plugins/ directory is always searched first.
enabled: Vec<String>Allowlist. A plugin that is not listed is not loaded; an empty list loads none.
mcp_timeout_secs: Option<u64>Default ceiling for one MCP server call, for [[mcp]] entries that state no
timeout_secs of their own. Clamped to 1–600 s like any plugin timeout.
Trait Implementations§
Source§impl Clone for PluginsConfig
impl Clone for PluginsConfig
Source§impl Debug for PluginsConfig
impl Debug for PluginsConfig
Source§impl Default for PluginsConfig
impl Default for PluginsConfig
Source§impl<'de> Deserialize<'de> for PluginsConfigwhere
PluginsConfig: Default,
impl<'de> Deserialize<'de> for PluginsConfigwhere
PluginsConfig: Default,
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 Forget for PluginsConfig
impl Freeze for PluginsConfig
impl Move for PluginsConfig
impl RefUnwindSafe for PluginsConfig
impl Send for PluginsConfigwhere
RawVecInner: Send,
impl Sync for PluginsConfigwhere
RawVecInner: Sync,
impl Unpin for PluginsConfig
impl UnsafeUnpin for PluginsConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for PluginsConfigwhere
RawVecInner: UnwindSafe,
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