pub struct CommentDrift {
pub comment_id: String,
pub author: String,
pub created: String,
pub marker_ref: String,
pub status: DriftStatus,
pub original_selection: String,
pub current_anchored_text: Option<String>,
pub suggested_new_anchor: Option<String>,
pub suggested_match_count: Option<usize>,
}Expand description
Per-comment drift report produced by audit_inline_comments.
Fields§
§comment_id: StringThe inline comment’s ID.
Comment author account ID.
created: StringISO 8601 creation timestamp.
marker_ref: StringThe annotation-mark id this comment is anchored to.
status: DriftStatusDrift classification.
original_selection: StringThe plaintext the reviewer originally highlighted.
current_anchored_text: Option<String>The text currently bearing the annotation mark (joined across runs).
None when the mark was lost.
suggested_new_anchor: Option<String>A suggested new anchor for a drifted/lost comment: the original
selection, when it still appears verbatim in the current page text.
None when it no longer appears (low confidence — a human should pick).
suggested_match_count: Option<usize>How many times suggested_new_anchor appears in the current page text
(so the caller can pass a match index to reanchor_inline_comment).
Trait Implementations§
Source§impl Clone for CommentDrift
impl Clone for CommentDrift
Source§fn clone(&self) -> CommentDrift
fn clone(&self) -> CommentDrift
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 CommentDrift
impl Debug for CommentDrift
Auto Trait Implementations§
impl Freeze for CommentDrift
impl RefUnwindSafe for CommentDrift
impl Send for CommentDrift
impl Sync for CommentDrift
impl Unpin for CommentDrift
impl UnsafeUnpin for CommentDrift
impl UnwindSafe for CommentDrift
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