pub struct UserToolValue {
pub name: String,
pub params: Vec<Param>,
pub return_type: Option<TypeName>,
pub body: Block,
}Expand description
Represents a user-defined tool at runtime
Fields§
§name: String§params: Vec<Param>§return_type: Option<TypeName>§body: BlockTrait Implementations§
Source§impl Clone for UserToolValue
impl Clone for UserToolValue
Source§fn clone(&self) -> UserToolValue
fn clone(&self) -> UserToolValue
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 UserToolValue
impl Debug for UserToolValue
Source§impl PartialEq for UserToolValue
impl PartialEq for UserToolValue
impl StructuralPartialEq for UserToolValue
Auto Trait Implementations§
impl Freeze for UserToolValue
impl RefUnwindSafe for UserToolValue
impl Send for UserToolValue
impl Sync for UserToolValue
impl Unpin for UserToolValue
impl UnwindSafe for UserToolValue
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