pub struct ResponseTextAnnotationDeltaEvent {
pub item_id: String,
pub output_index: u64,
pub content_index: u64,
pub annotation_index: u64,
pub annotation: Annotation,
}
Expand description
Emitted when a text annotation is added.
Fields§
§item_id: String
The ID of the output item that the text annotation was added to.
output_index: u64
The index of the output item that the text annotation was added to.
content_index: u64
The index of the content part that the text annotation was added to.
annotation_index: u64
The index of the annotation that was added.
annotation: Annotation
Implementations§
Source§impl ResponseTextAnnotationDeltaEvent
impl ResponseTextAnnotationDeltaEvent
Sourcepub fn builder() -> ResponseTextAnnotationDeltaEventBuilder<((), (), (), (), ())>
pub fn builder() -> ResponseTextAnnotationDeltaEventBuilder<((), (), (), (), ())>
Create a builder for building ResponseTextAnnotationDeltaEvent
.
On the builder, call .item_id(...)
, .output_index(...)
, .content_index(...)
, .annotation_index(...)
, .annotation(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ResponseTextAnnotationDeltaEvent
.
Trait Implementations§
Source§impl Clone for ResponseTextAnnotationDeltaEvent
impl Clone for ResponseTextAnnotationDeltaEvent
Source§fn clone(&self) -> ResponseTextAnnotationDeltaEvent
fn clone(&self) -> ResponseTextAnnotationDeltaEvent
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<'de> Deserialize<'de> for ResponseTextAnnotationDeltaEvent
impl<'de> Deserialize<'de> for ResponseTextAnnotationDeltaEvent
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 ResponseTextAnnotationDeltaEvent
impl PartialEq for ResponseTextAnnotationDeltaEvent
Source§fn eq(&self, other: &ResponseTextAnnotationDeltaEvent) -> bool
fn eq(&self, other: &ResponseTextAnnotationDeltaEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ResponseTextAnnotationDeltaEvent
Auto Trait Implementations§
impl Freeze for ResponseTextAnnotationDeltaEvent
impl RefUnwindSafe for ResponseTextAnnotationDeltaEvent
impl Send for ResponseTextAnnotationDeltaEvent
impl Sync for ResponseTextAnnotationDeltaEvent
impl Unpin for ResponseTextAnnotationDeltaEvent
impl UnwindSafe for ResponseTextAnnotationDeltaEvent
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