pub struct RawCustomToolError {
pub name: String,
/* private fields */
}Expand description
A custom tool error whose payload is decoded only on explicit inspection.
Fields§
§name: StringImplementations§
Source§impl RawCustomToolError
impl RawCustomToolError
pub fn from_payload(name: String, payload: TypedSchemaValue) -> Self
pub fn from_wire(name: String, payload: TypedSchemaValue) -> Self
Sourcepub fn payload(&self) -> Result<&TypedSchemaValue, String>
pub fn payload(&self) -> Result<&TypedSchemaValue, String>
Materializes the dynamic schema model for an undeclared error.
Trait Implementations§
Source§impl Clone for RawCustomToolError
impl Clone for RawCustomToolError
Source§impl Debug for RawCustomToolError
impl Debug for RawCustomToolError
Auto Trait Implementations§
impl !RefUnwindSafe for RawCustomToolError
impl !Send for RawCustomToolError
impl !Sync for RawCustomToolError
impl !UnwindSafe for RawCustomToolError
impl Freeze for RawCustomToolError
impl Unpin for RawCustomToolError
impl UnsafeUnpin for RawCustomToolError
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