pub struct RealtimeSessionCreateRequestTool {
pub type: Option<RealtimeSessionCreateRequestToolType>,
pub name: Option<String>,
pub description: Option<String>,
pub parameters: Option<HashMap<String, Value>>,
}
Fields§
§type: Option<RealtimeSessionCreateRequestToolType>
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 RealtimeSessionCreateRequestTool
impl RealtimeSessionCreateRequestTool
Sourcepub fn builder() -> RealtimeSessionCreateRequestToolBuilder<((), (), (), ())>
pub fn builder() -> RealtimeSessionCreateRequestToolBuilder<((), (), (), ())>
Create a builder for building RealtimeSessionCreateRequestTool
.
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 RealtimeSessionCreateRequestTool
.
Trait Implementations§
Source§impl Clone for RealtimeSessionCreateRequestTool
impl Clone for RealtimeSessionCreateRequestTool
Source§fn clone(&self) -> RealtimeSessionCreateRequestTool
fn clone(&self) -> RealtimeSessionCreateRequestTool
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 RealtimeSessionCreateRequestTool
impl Default for RealtimeSessionCreateRequestTool
Source§fn default() -> RealtimeSessionCreateRequestTool
fn default() -> RealtimeSessionCreateRequestTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeSessionCreateRequestTool
impl<'de> Deserialize<'de> for RealtimeSessionCreateRequestTool
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 RealtimeSessionCreateRequestTool
impl PartialEq for RealtimeSessionCreateRequestTool
Source§fn eq(&self, other: &RealtimeSessionCreateRequestTool) -> bool
fn eq(&self, other: &RealtimeSessionCreateRequestTool) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeSessionCreateRequestTool
Auto Trait Implementations§
impl Freeze for RealtimeSessionCreateRequestTool
impl RefUnwindSafe for RealtimeSessionCreateRequestTool
impl Send for RealtimeSessionCreateRequestTool
impl Sync for RealtimeSessionCreateRequestTool
impl Unpin for RealtimeSessionCreateRequestTool
impl UnwindSafe for RealtimeSessionCreateRequestTool
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