pub enum McpSurfaceRole {
Tool,
Resource,
Prompt,
Model,
}Expand description
MCP role that a projected surface row plays for a client.
Variants§
Tool
A callable tool.
Resource
A readable resource.
Prompt
A prompt template.
Model
A sampling model surface.
Implementations§
Trait Implementations§
Source§impl Clone for McpSurfaceRole
impl Clone for McpSurfaceRole
Source§fn clone(&self) -> McpSurfaceRole
fn clone(&self) -> McpSurfaceRole
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 McpSurfaceRole
impl Debug for McpSurfaceRole
impl Eq for McpSurfaceRole
Source§impl Ord for McpSurfaceRole
impl Ord for McpSurfaceRole
Source§fn cmp(&self, other: &McpSurfaceRole) -> Ordering
fn cmp(&self, other: &McpSurfaceRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for McpSurfaceRole
impl PartialEq for McpSurfaceRole
Source§fn eq(&self, other: &McpSurfaceRole) -> bool
fn eq(&self, other: &McpSurfaceRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for McpSurfaceRole
impl PartialOrd for McpSurfaceRole
impl StructuralPartialEq for McpSurfaceRole
Auto Trait Implementations§
impl Freeze for McpSurfaceRole
impl RefUnwindSafe for McpSurfaceRole
impl Send for McpSurfaceRole
impl Sync for McpSurfaceRole
impl Unpin for McpSurfaceRole
impl UnsafeUnpin for McpSurfaceRole
impl UnwindSafe for McpSurfaceRole
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