pub struct SessionActiveClient {
pub client_id: String,
pub display_name: Option<String>,
pub tools: Vec<ToolDefinition>,
pub customizations: Option<Vec<ClientPluginCustomization>>,
}Expand description
The client currently providing tools and interactive capabilities to a session.
Only one client may be active per session at a time. The server SHOULD automatically unset the active client if that client disconnects.
Fields§
§client_id: StringClient identifier (matches clientId from initialize)
display_name: Option<String>Human-readable client name (e.g. "VS Code")
tools: Vec<ToolDefinition>Tools this client provides to the session
customizations: Option<Vec<ClientPluginCustomization>>Plugin customizations this client contributes to the session.
Clients publish in Open Plugins format — i.e. always container-shaped plugins. They MAY synthesize virtual plugins in memory and rely on the host to expand them into concrete children inside {@link SessionState.customizations}.
Trait Implementations§
Source§impl Clone for SessionActiveClient
impl Clone for SessionActiveClient
Source§fn clone(&self) -> SessionActiveClient
fn clone(&self) -> SessionActiveClient
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 SessionActiveClient
impl Debug for SessionActiveClient
Source§impl<'de> Deserialize<'de> for SessionActiveClient
impl<'de> Deserialize<'de> for SessionActiveClient
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 SessionActiveClient
impl PartialEq for SessionActiveClient
Source§fn eq(&self, other: &SessionActiveClient) -> bool
fn eq(&self, other: &SessionActiveClient) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionActiveClient
impl Serialize for SessionActiveClient
impl StructuralPartialEq for SessionActiveClient
Auto Trait Implementations§
impl Freeze for SessionActiveClient
impl RefUnwindSafe for SessionActiveClient
impl Send for SessionActiveClient
impl Sync for SessionActiveClient
impl Unpin for SessionActiveClient
impl UnsafeUnpin for SessionActiveClient
impl UnwindSafe for SessionActiveClient
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