pub struct SessionCustomizationToggledAction {
pub id: String,
pub enablement: Vec<CustomizationEnablement>,
}Expand description
A client updated a customization’s enablement decisions.
Matches id against every top-level customization first — a plugin or
directory container, or a bare top-level MCP server — then against the
children inside each container (a skill, agent, or other entry). Plugins
and MCP servers retain the matched entry’s explicit decisions; other
entries update their enabled flag. Disabling a plugin still disables all
of its children — the effective state of a plugin child is the plugin’s
derived enabled value and (child.enabled ?? true) — so toggling a child
only matters while its plugin is enabled. Is a no-op when no
customization has the given id.
The enablement array completely replaces all explicit decisions. A caller
changing one scope must include every decision it intends to preserve.
Fields§
§id: StringThe id of the container or child to update.
enablement: Vec<CustomizationEnablement>Explicit enablement decisions, replacing the previous list entirely.
Trait Implementations§
Source§impl Clone for SessionCustomizationToggledAction
impl Clone for SessionCustomizationToggledAction
Source§fn clone(&self) -> SessionCustomizationToggledAction
fn clone(&self) -> SessionCustomizationToggledAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more