pub struct Tool {Show 13 fields
pub id: Uuid,
pub name: String,
pub description: Option<String>,
pub version: String,
pub tool_type: ToolType,
pub parameters_schema: Option<Value>,
pub enabled: bool,
pub config: Option<Value>,
pub usage_count: i64,
pub avg_execution_time_ms: Option<f32>,
pub last_used_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Tool model
Fields§
§id: Uuid§name: String§description: Option<String>§version: String§tool_type: ToolType§parameters_schema: Option<Value>§enabled: bool§config: Option<Value>§usage_count: i64§avg_execution_time_ms: Option<f32>§last_used_at: Option<DateTime<Utc>>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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 Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
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