pub struct PromptArguments(/* private fields */);Expand description
The arguments of a prompts/get request.
Implementations§
Source§impl PromptArguments
impl PromptArguments
Sourcepub fn required<T: FromStr>(&self, name: &str) -> Result<T, ToolError>
pub fn required<T: FromStr>(&self, name: &str) -> Result<T, ToolError>
Parses a required argument.
§Errors
Returns an invalid-argument error (-32602) if the argument is missing
or does not parse.
Trait Implementations§
Source§impl Clone for PromptArguments
impl Clone for PromptArguments
Source§impl Debug for PromptArguments
impl Debug for PromptArguments
Source§impl Default for PromptArguments
impl Default for PromptArguments
impl Eq for PromptArguments
Source§impl PartialEq for PromptArguments
impl PartialEq for PromptArguments
impl StructuralPartialEq for PromptArguments
Auto Trait Implementations§
impl Freeze for PromptArguments
impl RefUnwindSafe for PromptArguments
impl Send for PromptArguments
impl Sync for PromptArguments
impl Unpin for PromptArguments
impl UnsafeUnpin for PromptArguments
impl UnwindSafe for PromptArguments
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