pub struct TextPositionAnchor {
pub char_start: Option<i64>,
pub char_end: Option<i64>,
pub quote: String,
pub chunk_id: Option<String>,
pub chunk_preview: Option<String>,
}Expand description
Per-marker source-location anchor, parallel to one entry in a citation’s
text_positions. Forwarded verbatim from the plugin (see DESIGN
cpt-cf-chat-engine-design-entity-citations).
Fields§
§char_start: Option<i64>Zero-indexed start offset of the cited fragment in the source text.
char_end: Option<i64>Exclusive end offset of the cited fragment in the source text.
quote: StringVerbatim cited text at the [char_start..char_end] slice.
chunk_id: Option<String>Chunk identifier for this occurrence’s source passage.
chunk_preview: Option<String>First ~200 chars of this occurrence’s chunk, for hover.
Trait Implementations§
Source§impl Clone for TextPositionAnchor
impl Clone for TextPositionAnchor
Source§fn clone(&self) -> TextPositionAnchor
fn clone(&self) -> TextPositionAnchor
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 TextPositionAnchor
impl Debug for TextPositionAnchor
Source§impl<'de> Deserialize<'de> for TextPositionAnchor
impl<'de> Deserialize<'de> for TextPositionAnchor
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 TextPositionAnchor
impl RefUnwindSafe for TextPositionAnchor
impl Send for TextPositionAnchor
impl Sync for TextPositionAnchor
impl Unpin for TextPositionAnchor
impl UnsafeUnpin for TextPositionAnchor
impl UnwindSafe for TextPositionAnchor
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