pub enum GeminiStreamJsonEvent {
Init {
session_id: String,
model: String,
raw: Value,
},
Message {
role: String,
content: String,
delta: bool,
raw: Value,
},
ToolUse {
tool_name: String,
tool_id: String,
parameters: Value,
raw: Value,
},
ToolResult {
tool_id: String,
status: String,
output: Option<String>,
error: Option<GeminiToolResultError>,
raw: Value,
},
Error {
severity: String,
message: String,
raw: Value,
},
Result {
payload: GeminiStreamJsonResultPayload,
},
Unknown {
event_type: String,
raw: Value,
},
}Variants§
Init
Message
ToolUse
ToolResult
Fields
§
error: Option<GeminiToolResultError>Error
Result
Fields
§
payload: GeminiStreamJsonResultPayloadUnknown
Implementations§
Trait Implementations§
Source§impl Clone for GeminiStreamJsonEvent
impl Clone for GeminiStreamJsonEvent
Source§fn clone(&self) -> GeminiStreamJsonEvent
fn clone(&self) -> GeminiStreamJsonEvent
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 GeminiStreamJsonEvent
impl Debug for GeminiStreamJsonEvent
Source§impl PartialEq for GeminiStreamJsonEvent
impl PartialEq for GeminiStreamJsonEvent
Source§fn eq(&self, other: &GeminiStreamJsonEvent) -> bool
fn eq(&self, other: &GeminiStreamJsonEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GeminiStreamJsonEvent
impl StructuralPartialEq for GeminiStreamJsonEvent
Auto Trait Implementations§
impl Freeze for GeminiStreamJsonEvent
impl RefUnwindSafe for GeminiStreamJsonEvent
impl Send for GeminiStreamJsonEvent
impl Sync for GeminiStreamJsonEvent
impl Unpin for GeminiStreamJsonEvent
impl UnsafeUnpin for GeminiStreamJsonEvent
impl UnwindSafe for GeminiStreamJsonEvent
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