pub struct MessageAnnotation {
pub type_: String,
pub text: Option<String>,
pub start_index: Option<i64>,
pub end_index: Option<i64>,
pub file_citation: Option<FileCitation>,
pub file_path: Option<FilePath>,
}Expand description
An annotation on message text (file citation or file path).
Fields§
§type_: StringAnnotation type: “file_citation” or “file_path”.
text: Option<String>The text in the message content being annotated.
start_index: Option<i64>Start index of the annotation in the text.
end_index: Option<i64>End index of the annotation in the text.
file_citation: Option<FileCitation>File citation details (for file_citation type).
file_path: Option<FilePath>File path details (for file_path type).
Trait Implementations§
Source§impl Clone for MessageAnnotation
impl Clone for MessageAnnotation
Source§fn clone(&self) -> MessageAnnotation
fn clone(&self) -> MessageAnnotation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageAnnotation
impl Debug for MessageAnnotation
Source§impl<'de> Deserialize<'de> for MessageAnnotation
impl<'de> Deserialize<'de> for MessageAnnotation
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
Auto Trait Implementations§
impl Freeze for MessageAnnotation
impl RefUnwindSafe for MessageAnnotation
impl Send for MessageAnnotation
impl Sync for MessageAnnotation
impl Unpin for MessageAnnotation
impl UnsafeUnpin for MessageAnnotation
impl UnwindSafe for MessageAnnotation
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