pub struct ResponseTextDeltaEvent {
pub item_id: String,
pub output_index: u64,
pub content_index: u64,
pub delta: String,
}
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: u64
The index of the output item that the text delta was added to.
content_index: u64
The index of the content part that the text delta was added to.
delta: String
The text delta that was added.
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(...)
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§fn clone_from(&mut self, source: &Self)
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§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