pub struct GatewayResponse {
pub content: Option<String>,
pub tool_calls: Vec<ToolCall>,
pub generation_id: Option<String>,
pub finish_reason: Option<FinishReason>,
pub usage: Usage,
pub delivery_ambiguous: bool,
}Fields§
§content: Option<String>§tool_calls: Vec<ToolCall>§generation_id: Option<String>§finish_reason: Option<FinishReason>§usage: Usage§delivery_ambiguous: boolTrue when request delivery may have incurred cost but no reliable generation identity was recovered.
Trait Implementations§
Source§impl Clone for GatewayResponse
impl Clone for GatewayResponse
Source§fn clone(&self) -> GatewayResponse
fn clone(&self) -> GatewayResponse
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 GatewayResponse
impl Debug for GatewayResponse
Source§impl Default for GatewayResponse
impl Default for GatewayResponse
Source§fn default() -> GatewayResponse
fn default() -> GatewayResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for GatewayResponse
impl PartialEq for GatewayResponse
impl StructuralPartialEq for GatewayResponse
Auto Trait Implementations§
impl Freeze for GatewayResponse
impl RefUnwindSafe for GatewayResponse
impl Send for GatewayResponse
impl Sync for GatewayResponse
impl Unpin for GatewayResponse
impl UnsafeUnpin for GatewayResponse
impl UnwindSafe for GatewayResponse
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