pub struct FunctionResponse {
pub id: String,
pub name: String,
pub response: Value,
}Expand description
A single function call result, keyed by the server-assigned id.
Fields§
§id: StringMust match the id from the corresponding FunctionCallRequest.
name: String§response: ValueArbitrary JSON result returned to the model.
Keep the payload flexible: current Live API docs place some Gemini 2.5 tool-response scheduling knobs inside this JSON object rather than as a top-level Rust field.
Trait Implementations§
Source§impl Clone for FunctionResponse
impl Clone for FunctionResponse
Source§fn clone(&self) -> FunctionResponse
fn clone(&self) -> FunctionResponse
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 FunctionResponse
impl Debug for FunctionResponse
Auto Trait Implementations§
impl Freeze for FunctionResponse
impl RefUnwindSafe for FunctionResponse
impl Send for FunctionResponse
impl Sync for FunctionResponse
impl Unpin for FunctionResponse
impl UnsafeUnpin for FunctionResponse
impl UnwindSafe for FunctionResponse
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