pub struct GenerateResponse {
pub has_content: bool,
pub has_tool_calls: bool,
pub content: Option<String>,
pub tool_calls: Option<Vec<FunctionCall>>,
pub api_result: APIResult,
}Fields§
§has_content: bool§has_tool_calls: bool§content: Option<String>§tool_calls: Option<Vec<FunctionCall>>§api_result: APIResultTrait Implementations§
Source§impl Clone for GenerateResponse
impl Clone for GenerateResponse
Source§fn clone(&self) -> GenerateResponse
fn clone(&self) -> GenerateResponse
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 moreAuto Trait Implementations§
impl Freeze for GenerateResponse
impl RefUnwindSafe for GenerateResponse
impl Send for GenerateResponse
impl Sync for GenerateResponse
impl Unpin for GenerateResponse
impl UnwindSafe for GenerateResponse
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