pub enum OpenRouterStreamEvent {
ContentDelta {
text: String,
},
ToolCallDelta {
id: String,
ordinal: u64,
index: u64,
name: Option<String>,
arguments: Option<String>,
},
FinishReason {
reason: String,
},
Usage(OpenRouterUsage),
Done,
}Variants§
Trait Implementations§
Source§impl Clone for OpenRouterStreamEvent
impl Clone for OpenRouterStreamEvent
Source§impl Debug for OpenRouterStreamEvent
impl Debug for OpenRouterStreamEvent
impl Eq for OpenRouterStreamEvent
Source§impl PartialEq for OpenRouterStreamEvent
impl PartialEq for OpenRouterStreamEvent
impl StructuralPartialEq for OpenRouterStreamEvent
Auto Trait Implementations§
impl Freeze for OpenRouterStreamEvent
impl RefUnwindSafe for OpenRouterStreamEvent
impl Send for OpenRouterStreamEvent
impl Sync for OpenRouterStreamEvent
impl Unpin for OpenRouterStreamEvent
impl UnsafeUnpin for OpenRouterStreamEvent
impl UnwindSafe for OpenRouterStreamEvent
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