#[non_exhaustive]pub struct ChatToolCall {
pub id: String,
pub function: FunctionCall,
pub type_: ChatToolCallType,
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.id: String§function: FunctionCall§type_: ChatToolCallType§rest: RestImplementations§
Source§impl ChatToolCall
impl ChatToolCall
Sourcepub fn builder(
id: String,
function: FunctionCall,
type_: ChatToolCallType,
) -> ChatToolCallBuilder
pub fn builder( id: String, function: FunctionCall, type_: ChatToolCallType, ) -> ChatToolCallBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ChatToolCall
impl Clone for ChatToolCall
Source§impl Debug for ChatToolCall
impl Debug for ChatToolCall
Source§impl DeclaredFields for ChatToolCall
impl DeclaredFields for ChatToolCall
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ChatToolCall
impl<'de> Deserialize<'de> for ChatToolCall
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 ChatToolCall
Source§impl PartialEq for ChatToolCall
impl PartialEq for ChatToolCall
Source§impl Serialize for ChatToolCall
impl Serialize for ChatToolCall
impl StructuralPartialEq for ChatToolCall
Auto Trait Implementations§
impl Freeze for ChatToolCall
impl RefUnwindSafe for ChatToolCall
impl Send for ChatToolCall
impl Sync for ChatToolCall
impl Unpin for ChatToolCall
impl UnsafeUnpin for ChatToolCall
impl UnwindSafe for ChatToolCall
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