pub struct IssueText {
pub text: String,
pub body_cut: bool,
pub comments_cut: usize,
pub untrusted: Vec<String>,
}Expand description
An issue as a prompt carries it, and what was left out of it.
Fields§
§text: StringThe body as filed, then the comments on it since, oldest first.
body_cut: bool§comments_cut: usizeHow many of the oldest comments were left out to fit.
untrusted: Vec<String>Whose comments the trust setting passed over.
Implementations§
Source§impl IssueText
impl IssueText
pub fn shortened(&self) -> bool
Sourcepub fn report(&self, label: &str)
pub fn report(&self, label: &str)
Say in the log what the prompt is missing.
Never silently. A verdict on part of an issue looks exactly like a verdict on all of it, and “nobody said anything” looks exactly like “somebody was passed over”.
pub fn report_untrusted(&self, label: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IssueText
impl RefUnwindSafe for IssueText
impl Send for IssueText
impl Sync for IssueText
impl Unpin for IssueText
impl UnsafeUnpin for IssueText
impl UnwindSafe for IssueText
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