pub struct FunctionCall {
pub name: String,
pub arguments: String,
pub call_id: String,
pub id: Option<String>,
pub namespace: Option<String>,
pub extra: HashMap<String, Value>,
}Fields§
§name: String§arguments: StringRaw JSON string as written by the model. Intentionally not eagerly parsed — some models emit malformed JSON and we want byte-equivalent round-trip.
call_id: String§id: Option<String>§namespace: Option<String>§extra: HashMap<String, Value>Implementations§
Source§impl FunctionCall
impl FunctionCall
Sourcepub fn arguments_as_json(&self) -> Value
pub fn arguments_as_json(&self) -> Value
Try to parse arguments as JSON; returns Value::Null on failure.
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 · 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<'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