pub struct CompiledToolSchema { /* private fields */ }Expand description
Offline compiled Draft 2020-12 tool schema.
Implementations§
Source§impl CompiledToolSchema
impl CompiledToolSchema
Sourcepub fn compile(source: Value) -> Result<Self, SchemaCompilationError>
pub fn compile(source: Value) -> Result<Self, SchemaCompilationError>
Compiles a bounded, self-contained Draft 2020-12 schema.
§Errors
Rejects oversized/deep schemas, external references, and invalid schema syntax. HTTP and file retrieval are not enabled.
Trait Implementations§
Source§impl Clone for CompiledToolSchema
impl Clone for CompiledToolSchema
Source§fn clone(&self) -> CompiledToolSchema
fn clone(&self) -> CompiledToolSchema
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CompiledToolSchema
impl !UnwindSafe for CompiledToolSchema
impl Freeze for CompiledToolSchema
impl Send for CompiledToolSchema
impl Sync for CompiledToolSchema
impl Unpin for CompiledToolSchema
impl UnsafeUnpin for CompiledToolSchema
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