#[non_exhaustive]pub enum ToolErrorInfo {
Text {
message: String,
},
Json {
value: JsonValue,
},
}Expand description
Serializable description of a tool error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for ToolErrorInfo
impl Clone for ToolErrorInfo
Source§fn clone(&self) -> ToolErrorInfo
fn clone(&self) -> ToolErrorInfo
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 ToolErrorInfo
impl Debug for ToolErrorInfo
Source§impl<'de> Deserialize<'de> for ToolErrorInfo
impl<'de> Deserialize<'de> for ToolErrorInfo
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 ToolErrorInfo
impl Display for ToolErrorInfo
Source§impl From<&ToolError> for ToolErrorInfo
impl From<&ToolError> for ToolErrorInfo
Source§impl PartialEq for ToolErrorInfo
impl PartialEq for ToolErrorInfo
Source§impl Serialize for ToolErrorInfo
impl Serialize for ToolErrorInfo
impl StructuralPartialEq for ToolErrorInfo
Auto Trait Implementations§
impl Freeze for ToolErrorInfo
impl RefUnwindSafe for ToolErrorInfo
impl Send for ToolErrorInfo
impl Sync for ToolErrorInfo
impl Unpin for ToolErrorInfo
impl UnsafeUnpin for ToolErrorInfo
impl UnwindSafe for ToolErrorInfo
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