pub struct ResponseTextDeltaEvent {
pub item_id: String,
pub output_index: i64,
pub content_index: i64,
pub delta: String,
pub sequence_number: i64,
}
Expand description
Emitted when there is an additional text delta.
Fields§
§item_id: String
The ID of the output item that the text delta was added to.
output_index: i64
The index of the output item that the text delta was added to.
content_index: i64
The index of the content part that the text delta was added to.
delta: String
The text delta that was added.
sequence_number: i64
The sequence number for this event.
Implementations§
Source§impl ResponseTextDeltaEvent
impl ResponseTextDeltaEvent
Sourcepub fn builder() -> ResponseTextDeltaEventBuilder<((), (), (), (), ())>
pub fn builder() -> ResponseTextDeltaEventBuilder<((), (), (), (), ())>
Create a builder for building ResponseTextDeltaEvent
.
On the builder, call .item_id(...)
, .output_index(...)
, .content_index(...)
, .delta(...)
, .sequence_number(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ResponseTextDeltaEvent
.
Trait Implementations§
Source§impl Clone for ResponseTextDeltaEvent
impl Clone for ResponseTextDeltaEvent
Source§fn clone(&self) -> ResponseTextDeltaEvent
fn clone(&self) -> ResponseTextDeltaEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseTextDeltaEvent
impl Debug for ResponseTextDeltaEvent
Source§impl<'de> Deserialize<'de> for ResponseTextDeltaEvent
impl<'de> Deserialize<'de> for ResponseTextDeltaEvent
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResponseTextDeltaEvent
impl PartialEq for ResponseTextDeltaEvent
Source§fn eq(&self, other: &ResponseTextDeltaEvent) -> bool
fn eq(&self, other: &ResponseTextDeltaEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for ResponseTextDeltaEvent
impl Serialize for ResponseTextDeltaEvent
impl StructuralPartialEq for ResponseTextDeltaEvent
Auto Trait Implementations§
impl Freeze for ResponseTextDeltaEvent
impl RefUnwindSafe for ResponseTextDeltaEvent
impl Send for ResponseTextDeltaEvent
impl Sync for ResponseTextDeltaEvent
impl Unpin for ResponseTextDeltaEvent
impl UnwindSafe for ResponseTextDeltaEvent
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