#[non_exhaustive]pub struct ToolDefinition {
pub type_: ToolDefinitionType,
pub definition: Box<ToolUnion>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_: ToolDefinitionType§definition: Box<ToolUnion>§rest: RestImplementations§
Source§impl ToolDefinition
impl ToolDefinition
Sourcepub fn builder(
type_: ToolDefinitionType,
definition: Box<ToolUnion>,
) -> ToolDefinitionBuilder
pub fn builder( type_: ToolDefinitionType, definition: Box<ToolUnion>, ) -> ToolDefinitionBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ToolDefinition
impl Clone for ToolDefinition
Source§impl Debug for ToolDefinition
impl Debug for ToolDefinition
Source§impl DeclaredFields for ToolDefinition
impl DeclaredFields for ToolDefinition
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ToolDefinition
impl<'de> Deserialize<'de> for ToolDefinition
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
impl Eq for ToolDefinition
Source§impl PartialEq for ToolDefinition
impl PartialEq for ToolDefinition
Source§impl Serialize for ToolDefinition
impl Serialize for ToolDefinition
impl StructuralPartialEq for ToolDefinition
Auto Trait Implementations§
impl Freeze for ToolDefinition
impl RefUnwindSafe for ToolDefinition
impl Send for ToolDefinition
impl Sync for ToolDefinition
impl Unpin for ToolDefinition
impl UnsafeUnpin for ToolDefinition
impl UnwindSafe for ToolDefinition
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