pub struct PartDeltaEvent {
pub index: usize,
pub delta: ModelResponsePartDelta,
}Expand description
Event containing a delta update for a part.
Fields§
§index: usizeIndex of the part being updated.
delta: ModelResponsePartDeltaThe delta content.
Implementations§
Source§impl PartDeltaEvent
impl PartDeltaEvent
Sourcepub fn new(index: usize, delta: ModelResponsePartDelta) -> PartDeltaEvent
pub fn new(index: usize, delta: ModelResponsePartDelta) -> PartDeltaEvent
Create a new delta event.
Sourcepub fn tool_call_args(index: usize, args: impl Into<String>) -> PartDeltaEvent
pub fn tool_call_args(index: usize, args: impl Into<String>) -> PartDeltaEvent
Create a tool call args delta.
Sourcepub fn thinking(index: usize, content: impl Into<String>) -> PartDeltaEvent
pub fn thinking(index: usize, content: impl Into<String>) -> PartDeltaEvent
Create a thinking delta.
Sourcepub fn builtin_tool_call_args(
index: usize,
args: impl Into<String>,
) -> PartDeltaEvent
pub fn builtin_tool_call_args( index: usize, args: impl Into<String>, ) -> PartDeltaEvent
Create a builtin tool call args delta.
Trait Implementations§
Source§impl Clone for PartDeltaEvent
impl Clone for PartDeltaEvent
Source§fn clone(&self) -> PartDeltaEvent
fn clone(&self) -> PartDeltaEvent
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 PartDeltaEvent
impl Debug for PartDeltaEvent
Source§impl<'de> Deserialize<'de> for PartDeltaEvent
impl<'de> Deserialize<'de> for PartDeltaEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartDeltaEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartDeltaEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PartDeltaEvent
impl PartialEq for PartDeltaEvent
Source§impl Serialize for PartDeltaEvent
impl Serialize for PartDeltaEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PartDeltaEvent
Auto Trait Implementations§
impl Freeze for PartDeltaEvent
impl RefUnwindSafe for PartDeltaEvent
impl Send for PartDeltaEvent
impl Sync for PartDeltaEvent
impl Unpin for PartDeltaEvent
impl UnwindSafe for PartDeltaEvent
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