pub enum ToolInvocationError {
ArgumentsMustBeObject,
ArgumentsOutOfBounds,
}Expand description
Error constructing an untrusted invocation.
Variants§
ArgumentsMustBeObject
Arguments must be a JSON object.
ArgumentsOutOfBounds
Arguments exceed byte or nesting bounds.
Trait Implementations§
Source§impl Clone for ToolInvocationError
impl Clone for ToolInvocationError
Source§fn clone(&self) -> ToolInvocationError
fn clone(&self) -> ToolInvocationError
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 moreimpl Copy for ToolInvocationError
Source§impl Debug for ToolInvocationError
impl Debug for ToolInvocationError
Source§impl Display for ToolInvocationError
impl Display for ToolInvocationError
impl Eq for ToolInvocationError
Source§impl Error for ToolInvocationError
impl Error for ToolInvocationError
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 ToolInvocationError
impl PartialEq for ToolInvocationError
impl StructuralPartialEq for ToolInvocationError
Auto Trait Implementations§
impl Freeze for ToolInvocationError
impl RefUnwindSafe for ToolInvocationError
impl Send for ToolInvocationError
impl Sync for ToolInvocationError
impl Unpin for ToolInvocationError
impl UnsafeUnpin for ToolInvocationError
impl UnwindSafe for ToolInvocationError
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