pub struct MCPToolAnnotations {
pub title: Option<String>,
pub read_only_hint: bool,
pub destructive_hint: bool,
pub idempotent_hint: bool,
pub open_world_hint: bool,
pub max_result_size_chars: Option<usize>,
}Expand description
Annotations for an MCP tool.
Fields§
§title: Option<String>§read_only_hint: bool§destructive_hint: bool§idempotent_hint: bool§open_world_hint: bool§max_result_size_chars: Option<usize>Trait Implementations§
Source§impl Clone for MCPToolAnnotations
impl Clone for MCPToolAnnotations
Source§fn clone(&self) -> MCPToolAnnotations
fn clone(&self) -> MCPToolAnnotations
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 MCPToolAnnotations
impl Debug for MCPToolAnnotations
Source§impl Default for MCPToolAnnotations
impl Default for MCPToolAnnotations
Source§fn default() -> MCPToolAnnotations
fn default() -> MCPToolAnnotations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MCPToolAnnotations
impl<'de> Deserialize<'de> for MCPToolAnnotations
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
Auto Trait Implementations§
impl Freeze for MCPToolAnnotations
impl RefUnwindSafe for MCPToolAnnotations
impl Send for MCPToolAnnotations
impl Sync for MCPToolAnnotations
impl Unpin for MCPToolAnnotations
impl UnsafeUnpin for MCPToolAnnotations
impl UnwindSafe for MCPToolAnnotations
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more