pub struct FunctionCall {
pub name: String,
pub arguments: String,
}Expand description
The name and arguments of a function that should be called.
Accepts arguments as either a JSON string ("{\"key\":\"value\"}") or a
JSON object ({"key": "value"}); both are normalised to a JSON string
on deserialisation so callers always see the canonical form.
Fields§
§name: String§arguments: StringTrait Implementations§
Source§impl Clone for FunctionCall
impl Clone for FunctionCall
Source§impl ComposeSchema for FunctionCall
Available on crate feature protocol-schema only.
impl ComposeSchema for FunctionCall
Available on crate feature
protocol-schema only.Source§impl Debug for FunctionCall
impl Debug for FunctionCall
Source§impl Default for FunctionCall
impl Default for FunctionCall
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
Source§impl PartialEq for FunctionCall
impl PartialEq for FunctionCall
Source§impl Serialize for FunctionCall
impl Serialize for FunctionCall
impl StructuralPartialEq for FunctionCall
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