pub struct McpServerConnectedPayload {
pub server_name: String,
pub transport: String,
pub tool_count: usize,
}Expand description
An MCP server connected: at startup, on a reload, or when one is added.
Fields§
§server_name: String§transport: String§tool_count: usizeTrait Implementations§
Source§impl Clone for McpServerConnectedPayload
impl Clone for McpServerConnectedPayload
Source§fn clone(&self) -> McpServerConnectedPayload
fn clone(&self) -> McpServerConnectedPayload
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 McpServerConnectedPayload
impl Debug for McpServerConnectedPayload
Source§impl JsonSchema for McpServerConnectedPayload
impl JsonSchema for McpServerConnectedPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for McpServerConnectedPayload
impl Serialize for McpServerConnectedPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for McpServerConnectedPayload
impl Freeze for McpServerConnectedPayload
impl Move for McpServerConnectedPayload
impl RefUnwindSafe for McpServerConnectedPayload
impl Send for McpServerConnectedPayloadwhere
RawVecInner: Send,
impl Sync for McpServerConnectedPayloadwhere
RawVecInner: Sync,
impl Unpin for McpServerConnectedPayload
impl UnsafeUnpin for McpServerConnectedPayload
impl UnwindSafe for McpServerConnectedPayloadwhere
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