#[non_exhaustive]pub struct RealtimeMcpToolCall {
pub id: String,
pub arguments: String,
pub name: String,
pub server_label: String,
pub type_: RealtimeMcpToolCallType,
pub approval_request_id: Option<Option<String>>,
pub error: Option<Option<RealtimeMcpToolCallError>>,
pub output: Option<Option<String>>,
pub rest: Rest,
}Expand description
Source: openai/types/realtime/realtime_mcp_tool_call.py, RealtimeMcpToolCall.
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§arguments: String§name: String§server_label: String§type_: RealtimeMcpToolCallType§approval_request_id: Option<Option<String>>§error: Option<Option<RealtimeMcpToolCallError>>§output: Option<Option<String>>§rest: RestImplementations§
Source§impl RealtimeMcpToolCall
impl RealtimeMcpToolCall
Sourcepub fn builder(
id: String,
arguments: String,
name: String,
server_label: String,
type_: RealtimeMcpToolCallType,
) -> RealtimeMcpToolCallBuilder
pub fn builder( id: String, arguments: String, name: String, server_label: String, type_: RealtimeMcpToolCallType, ) -> RealtimeMcpToolCallBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for RealtimeMcpToolCall
impl Clone for RealtimeMcpToolCall
Source§impl Debug for RealtimeMcpToolCall
impl Debug for RealtimeMcpToolCall
Source§impl DeclaredFields for RealtimeMcpToolCall
impl DeclaredFields for RealtimeMcpToolCall
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for RealtimeMcpToolCall
impl<'de> Deserialize<'de> for RealtimeMcpToolCall
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 RealtimeMcpToolCall
impl PartialEq for RealtimeMcpToolCall
Source§impl Serialize for RealtimeMcpToolCall
impl Serialize for RealtimeMcpToolCall
impl StructuralPartialEq for RealtimeMcpToolCall
Auto Trait Implementations§
impl Freeze for RealtimeMcpToolCall
impl RefUnwindSafe for RealtimeMcpToolCall
impl Send for RealtimeMcpToolCall
impl Sync for RealtimeMcpToolCall
impl Unpin for RealtimeMcpToolCall
impl UnsafeUnpin for RealtimeMcpToolCall
impl UnwindSafe for RealtimeMcpToolCall
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