pub struct FunctionCall {
pub id: Option<String>,
pub name: Option<String>,
pub args: Option<JsonValue>,
pub partial_args: Option<Vec<PartialArg>>,
pub will_continue: Option<bool>,
}Expand description
A function call part.
Fields§
§id: Option<String>Call id.
name: Option<String>Function name.
args: Option<JsonValue>Complete arguments.
partial_args: Option<Vec<PartialArg>>Streamed argument fragments.
will_continue: Option<bool>Whether more fragments of this call follow.
Implementations§
Source§impl FunctionCall
impl FunctionCall
Sourcepub fn is_streaming_fragment(&self) -> bool
pub fn is_streaming_fragment(&self) -> bool
A fragment of a streamed call (partial arguments, or a name announced
with willContinue).
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
The {} fragment that terminates a streamed call.
Sourcepub fn completes_stream(&self) -> bool
pub fn completes_stream(&self) -> bool
Whether this fragment completes the streamed call.
Trait Implementations§
Source§impl Clone for FunctionCall
impl Clone for FunctionCall
Source§fn clone(&self) -> FunctionCall
fn clone(&self) -> FunctionCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionCall
impl Debug for FunctionCall
Source§impl Default for FunctionCall
impl Default for FunctionCall
Source§fn default() -> FunctionCall
fn default() -> FunctionCall
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FunctionCall
impl<'de> Deserialize<'de> for FunctionCall
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
Auto Trait Implementations§
impl Freeze for FunctionCall
impl RefUnwindSafe for FunctionCall
impl Send for FunctionCall
impl Sync for FunctionCall
impl Unpin for FunctionCall
impl UnsafeUnpin for FunctionCall
impl UnwindSafe for FunctionCall
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