pub enum McpToolMetadataError {
EmptyName,
InvalidNameStart,
InvalidNameCharacter,
EmptyText {
label: String,
},
}Expand description
Validation error for generated MCP tool metadata.
Variants§
EmptyName
The tool name is empty or contains only whitespace.
InvalidNameStart
The tool name starts with an unsupported character.
InvalidNameCharacter
The tool name contains an unsupported character.
EmptyText
A human-readable metadata field is empty or contains only whitespace.
Trait Implementations§
Source§impl Clone for McpToolMetadataError
impl Clone for McpToolMetadataError
Source§impl Debug for McpToolMetadataError
impl Debug for McpToolMetadataError
Source§impl Display for McpToolMetadataError
impl Display for McpToolMetadataError
impl Eq for McpToolMetadataError
Source§impl Error for McpToolMetadataError
impl Error for McpToolMetadataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for McpToolMetadataError
impl PartialEq for McpToolMetadataError
impl StructuralPartialEq for McpToolMetadataError
Auto Trait Implementations§
impl Freeze for McpToolMetadataError
impl RefUnwindSafe for McpToolMetadataError
impl Send for McpToolMetadataError
impl Sync for McpToolMetadataError
impl Unpin for McpToolMetadataError
impl UnsafeUnpin for McpToolMetadataError
impl UnwindSafe for McpToolMetadataError
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