pub struct ResponseOutputTextAnnotationAddedEvent {
pub item_id: String,
pub output_index: u64,
pub content_index: u64,
pub annotation_index: u64,
pub sequence_number: u64,
pub annotation: HashMap<String, Value>,
}
Expand description
Emitted when an annotation is added to output text content.
Fields§
§item_id: String
The unique identifier of the item to which the annotation is being added.
output_index: u64
The index of the output item in the response’s output array.
content_index: u64
The index of the content part within the output item.
annotation_index: u64
The index of the annotation within the content part.
sequence_number: u64
The sequence number of this event.
annotation: HashMap<String, Value>
The annotation object being added. (See annotation schema for details.)
Implementations§
Source§impl ResponseOutputTextAnnotationAddedEvent
impl ResponseOutputTextAnnotationAddedEvent
Sourcepub fn builder() -> ResponseOutputTextAnnotationAddedEventBuilder<((), (), (), (), (), ())>
pub fn builder() -> ResponseOutputTextAnnotationAddedEventBuilder<((), (), (), (), (), ())>
Create a builder for building ResponseOutputTextAnnotationAddedEvent
.
On the builder, call .item_id(...)
, .output_index(...)
, .content_index(...)
, .annotation_index(...)
, .sequence_number(...)
, .annotation(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ResponseOutputTextAnnotationAddedEvent
.
Trait Implementations§
Source§impl Clone for ResponseOutputTextAnnotationAddedEvent
impl Clone for ResponseOutputTextAnnotationAddedEvent
Source§fn clone(&self) -> ResponseOutputTextAnnotationAddedEvent
fn clone(&self) -> ResponseOutputTextAnnotationAddedEvent
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 ResponseOutputTextAnnotationAddedEvent
impl<'de> Deserialize<'de> for ResponseOutputTextAnnotationAddedEvent
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 ResponseOutputTextAnnotationAddedEvent
impl PartialEq for ResponseOutputTextAnnotationAddedEvent
Source§fn eq(&self, other: &ResponseOutputTextAnnotationAddedEvent) -> bool
fn eq(&self, other: &ResponseOutputTextAnnotationAddedEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ResponseOutputTextAnnotationAddedEvent
Auto Trait Implementations§
impl Freeze for ResponseOutputTextAnnotationAddedEvent
impl RefUnwindSafe for ResponseOutputTextAnnotationAddedEvent
impl Send for ResponseOutputTextAnnotationAddedEvent
impl Sync for ResponseOutputTextAnnotationAddedEvent
impl Unpin for ResponseOutputTextAnnotationAddedEvent
impl UnwindSafe for ResponseOutputTextAnnotationAddedEvent
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