pub struct Payload {
pub text: String,
pub valid_lines: BTreeSet<u32>,
}Expand description
A rendered payload plus the file line numbers it legitimately covers.
Fields§
§text: StringThe text handed to the model.
valid_lines: BTreeSet<u32>Every new-file line number that appears in text with a number in the
gutter — Context and Added lines. A later phase drops any finding
whose line is not in this set, because such a finding is about code the
model was never shown.
Context lines are included deliberately: they were shown with their real numbers, so a finding on one is an observation about code the model actually read, not a hallucination.
Trait Implementations§
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.