pub struct RealtimeSessionCreateResponseTool {
pub type: Option<RealtimeSessionCreateResponseToolType>,
pub name: Option<String>,
pub description: Option<String>,
pub parameters: Option<HashMap<String, Value>>,
}
Fields§
§type: Option<RealtimeSessionCreateResponseToolType>
The type of the tool, i.e. function
.
name: Option<String>
The name of the function.
description: Option<String>
The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything).
parameters: Option<HashMap<String, Value>>
Parameters of the function in JSON Schema.
Implementations§
Source§impl RealtimeSessionCreateResponseTool
impl RealtimeSessionCreateResponseTool
Sourcepub fn builder() -> RealtimeSessionCreateResponseToolBuilder<((), (), (), ())>
pub fn builder() -> RealtimeSessionCreateResponseToolBuilder<((), (), (), ())>
Create a builder for building RealtimeSessionCreateResponseTool
.
On the builder, call .r#type(...)
(optional), .name(...)
(optional), .description(...)
(optional), .parameters(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeSessionCreateResponseTool
.
Trait Implementations§
Source§impl Clone for RealtimeSessionCreateResponseTool
impl Clone for RealtimeSessionCreateResponseTool
Source§fn clone(&self) -> RealtimeSessionCreateResponseTool
fn clone(&self) -> RealtimeSessionCreateResponseTool
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 Default for RealtimeSessionCreateResponseTool
impl Default for RealtimeSessionCreateResponseTool
Source§fn default() -> RealtimeSessionCreateResponseTool
fn default() -> RealtimeSessionCreateResponseTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeSessionCreateResponseTool
impl<'de> Deserialize<'de> for RealtimeSessionCreateResponseTool
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 RealtimeSessionCreateResponseTool
impl PartialEq for RealtimeSessionCreateResponseTool
Source§fn eq(&self, other: &RealtimeSessionCreateResponseTool) -> bool
fn eq(&self, other: &RealtimeSessionCreateResponseTool) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeSessionCreateResponseTool
Auto Trait Implementations§
impl Freeze for RealtimeSessionCreateResponseTool
impl RefUnwindSafe for RealtimeSessionCreateResponseTool
impl Send for RealtimeSessionCreateResponseTool
impl Sync for RealtimeSessionCreateResponseTool
impl Unpin for RealtimeSessionCreateResponseTool
impl UnwindSafe for RealtimeSessionCreateResponseTool
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