pub struct McpSurfaceCard {
pub id: String,
pub source: McpSurfaceSource,
pub role: McpSurfaceRole,
pub name: String,
pub symbol: Option<Symbol>,
pub uri: Option<String>,
pub description: String,
pub input_shape: Option<ShapeRef>,
pub output_shape: Option<ShapeRef>,
pub annotations: Vec<(Symbol, Expr)>,
pub capabilities: Vec<CapabilityName>,
pub stream_policy: McpStreamPolicy,
}Expand description
A single redacted MCP surface row projected from a native or skill card.
Fields§
§id: StringStable identifier for the row.
source: McpSurfaceSourceCard the row was projected from.
role: McpSurfaceRoleMCP role the row plays.
name: StringPublic MCP name.
symbol: Option<Symbol>Backing runtime symbol, when the row maps to one.
uri: Option<String>Resource URI, for resource rows.
description: StringHuman-readable description.
input_shape: Option<ShapeRef>Input shape, when the row accepts arguments.
output_shape: Option<ShapeRef>Output shape, when the row declares a result shape.
annotations: Vec<(Symbol, Expr)>Public annotations carried onto the surface.
capabilities: Vec<CapabilityName>Capabilities required to invoke the row.
stream_policy: McpStreamPolicyStreaming behavior advertised by the row.
Implementations§
Trait Implementations§
Source§impl Clone for McpSurfaceCard
impl Clone for McpSurfaceCard
Source§fn clone(&self) -> McpSurfaceCard
fn clone(&self) -> McpSurfaceCard
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for McpSurfaceCard
impl !UnwindSafe for McpSurfaceCard
impl Freeze for McpSurfaceCard
impl Send for McpSurfaceCard
impl Sync for McpSurfaceCard
impl Unpin for McpSurfaceCard
impl UnsafeUnpin for McpSurfaceCard
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