#[non_exhaustive]pub enum ToolAdapterBuildError {
SchemaContract {
role: ToolSchemaRole,
source: ToolSchemaValidationError,
},
}Expand description
Registration failure for a typed tool adapter.
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.
SchemaContract
A generated Rust type schema did not match the pinned local contract.
Fields
§
role: ToolSchemaRoleSchema boundary that failed registration.
§
source: ToolSchemaValidationErrorPrivate registry diagnostic.
Trait Implementations§
Source§impl Debug for ToolAdapterBuildError
impl Debug for ToolAdapterBuildError
Source§impl Display for ToolAdapterBuildError
impl Display for ToolAdapterBuildError
Source§impl Error for ToolAdapterBuildError
impl Error for ToolAdapterBuildError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ToolAdapterBuildError
impl !UnwindSafe for ToolAdapterBuildError
impl Forget for ToolAdapterBuildError
impl Freeze for ToolAdapterBuildError
impl Move for ToolAdapterBuildError
impl Send for ToolAdapterBuildError
impl Sync for ToolAdapterBuildError
impl Unpin for ToolAdapterBuildError
impl UnsafeUnpin for ToolAdapterBuildError
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