pub enum IncludeContext {
AllServers,
None,
ThisServer,
}Expand description
A request to include context from one or more MCP servers (including the caller), to be attached to the prompt. The client MAY ignore this request. Default is “none”. Values “thisServer” and “allServers” are soft-deprecated. Servers SHOULD only use these values if the client declares ClientCapabilities.sampling.context. These values may be removed in future spec releases.
JSON schema
{
"description": "A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.\nThe client MAY ignore this request.\n\nDefault is \"none\". Values \"thisServer\" and \"allServers\" are soft-deprecated. Servers SHOULD only use these values if the client\ndeclares ClientCapabilities.sampling.context. These values may be removed in future spec releases.",
"type": "string",
"enum": [
"allServers",
"none",
"thisServer"
]
}Variants§
Trait Implementations§
Source§impl Clone for IncludeContext
impl Clone for IncludeContext
Source§fn clone(&self) -> IncludeContext
fn clone(&self) -> IncludeContext
Returns a duplicate of the value. Read more
1.0.0 · 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 IncludeContext
impl Debug for IncludeContext
Source§impl<'de> Deserialize<'de> for IncludeContext
impl<'de> Deserialize<'de> for IncludeContext
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 Display for IncludeContext
impl Display for IncludeContext
Source§impl Hash for IncludeContext
impl Hash for IncludeContext
Source§impl Ord for IncludeContext
impl Ord for IncludeContext
Source§fn cmp(&self, other: &IncludeContext) -> Ordering
fn cmp(&self, other: &IncludeContext) -> Ordering
1.21.0 · 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 IncludeContext
impl PartialEq for IncludeContext
Source§impl PartialOrd for IncludeContext
impl PartialOrd for IncludeContext
Source§impl Serialize for IncludeContext
impl Serialize for IncludeContext
impl Copy for IncludeContext
impl Eq for IncludeContext
impl StructuralPartialEq for IncludeContext
Auto Trait Implementations§
impl Freeze for IncludeContext
impl RefUnwindSafe for IncludeContext
impl Send for IncludeContext
impl Sync for IncludeContext
impl Unpin for IncludeContext
impl UnwindSafe for IncludeContext
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