pub struct EndpointTool {
pub name: String,
pub description: String,
pub instructions: String,
pub path: String,
pub method: String,
pub path_params_schema: Option<Option<Value>>,
pub query_params_schema: Option<Option<Value>>,
pub body_schema: Option<Option<Value>>,
}
Fields§
§name: String
The tool name/operation ID
description: String
Short description of the tool
instructions: String
Detailed instructions for using the tool
path: String
API endpoint path
method: String
HTTP method (GET, POST, etc.)
path_params_schema: Option<Option<Value>>
JSON schema for path parameters
query_params_schema: Option<Option<Value>>
JSON schema for query parameters
body_schema: Option<Option<Value>>
JSON schema for request body
Implementations§
Trait Implementations§
Source§impl Clone for EndpointTool
impl Clone for EndpointTool
Source§fn clone(&self) -> EndpointTool
fn clone(&self) -> EndpointTool
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 EndpointTool
impl Debug for EndpointTool
Source§impl Default for EndpointTool
impl Default for EndpointTool
Source§fn default() -> EndpointTool
fn default() -> EndpointTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndpointTool
impl<'de> Deserialize<'de> for EndpointTool
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 PartialEq for EndpointTool
impl PartialEq for EndpointTool
Source§impl Serialize for EndpointTool
impl Serialize for EndpointTool
impl StructuralPartialEq for EndpointTool
Auto Trait Implementations§
impl Freeze for EndpointTool
impl RefUnwindSafe for EndpointTool
impl Send for EndpointTool
impl Sync for EndpointTool
impl Unpin for EndpointTool
impl UnwindSafe for EndpointTool
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