pub enum ArgsSchema {
JsonSchema(Value),
TypeName(String),
}Expand description
Represents a tool’s schema, which can be a JSON schema or a type reference.
Variants§
Implementations§
Source§impl ArgsSchema
impl ArgsSchema
Sourcepub fn to_json_schema(&self) -> Value
pub fn to_json_schema(&self) -> Value
Get the JSON schema for this args schema.
Sourcepub fn properties(&self) -> HashMap<String, Value>
pub fn properties(&self) -> HashMap<String, Value>
Get properties from the schema.
Trait Implementations§
Source§impl Clone for ArgsSchema
impl Clone for ArgsSchema
Source§fn clone(&self) -> ArgsSchema
fn clone(&self) -> ArgsSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 ArgsSchema
impl Debug for ArgsSchema
Source§impl Default for ArgsSchema
impl Default for ArgsSchema
Source§impl<'de> Deserialize<'de> for ArgsSchema
impl<'de> Deserialize<'de> for ArgsSchema
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
Auto Trait Implementations§
impl Freeze for ArgsSchema
impl RefUnwindSafe for ArgsSchema
impl Send for ArgsSchema
impl Sync for ArgsSchema
impl Unpin for ArgsSchema
impl UnwindSafe for ArgsSchema
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