#[non_exhaustive]pub struct Implementation {
pub name: String,
pub title: Option<String>,
pub version: String,
pub meta: Option<Meta>,
}Expand description
Metadata about the implementation of the client or agent. Describes the name and version of an MCP implementation, with an optional title for UI representation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIntended for programmatic or logical use, but can be used as a display name fallback if title isn’t present.
title: Option<String>Intended for UI and end-user contexts — optimized to be human-readable and easily understood.
If not provided, the name should be used for display.
version: StringVersion of the implementation. Can be displayed to the user or used for debugging or metrics purposes. (e.g. “1.0.0”).
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl Implementation
impl Implementation
pub fn new(name: impl Into<String>, version: impl Into<String>) -> Self
Sourcepub fn title(self, title: impl IntoOption<String>) -> Self
pub fn title(self, title: impl IntoOption<String>) -> Self
Intended for UI and end-user contexts — optimized to be human-readable and easily understood.
If not provided, the name should be used for display.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for Implementation
impl Clone for Implementation
Source§fn clone(&self) -> Implementation
fn clone(&self) -> Implementation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Implementation
impl Debug for Implementation
Source§impl<'de> Deserialize<'de> for Implementation
impl<'de> Deserialize<'de> for Implementation
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>,
Source§impl JsonSchema for Implementation
impl JsonSchema for Implementation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more