pub struct SessionCustomizationToggledAction {
pub id: String,
pub enabled: bool,
}Expand description
A client toggled a customization on or off.
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), and
sets the matched entry’s enabled flag. Disabling a container still
disables all of its children — the effective state of a child is
container.enabled && (child.enabled ?? true) — so toggling a child
only matters while its container is enabled. Is a no-op when no
customization has the given id.
Fields§
§id: StringThe id of the container or child to toggle.
enabled: boolWhether to enable or disable the targeted customization.
Trait Implementations§
Source§impl Clone for SessionCustomizationToggledAction
impl Clone for SessionCustomizationToggledAction
Source§fn clone(&self) -> SessionCustomizationToggledAction
fn clone(&self) -> SessionCustomizationToggledAction
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<'de> Deserialize<'de> for SessionCustomizationToggledAction
impl<'de> Deserialize<'de> for SessionCustomizationToggledAction
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
Source§impl PartialEq for SessionCustomizationToggledAction
impl PartialEq for SessionCustomizationToggledAction
Source§fn eq(&self, other: &SessionCustomizationToggledAction) -> bool
fn eq(&self, other: &SessionCustomizationToggledAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionCustomizationToggledAction
Auto Trait Implementations§
impl Freeze for SessionCustomizationToggledAction
impl RefUnwindSafe for SessionCustomizationToggledAction
impl Send for SessionCustomizationToggledAction
impl Sync for SessionCustomizationToggledAction
impl Unpin for SessionCustomizationToggledAction
impl UnsafeUnpin for SessionCustomizationToggledAction
impl UnwindSafe for SessionCustomizationToggledAction
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