pub struct Issue {
pub number: i64,
pub title: String,
pub body: Option<String>,
pub state: String,
pub url: String,
pub labels: Vec<Label>,
}Fields§
§number: i64§title: String§body: Option<String>§state: String§url: String§labels: Vec<Label>Implementations§
Source§impl Issue
impl Issue
pub fn body_text(&self) -> &str
Sourcepub fn body_for_prompt(&self, max: usize) -> (String, bool)
pub fn body_for_prompt(&self, max: usize) -> (String, bool)
The body as a prompt carries it, and whether anything was left off.
Shortened only past max, which is sized so that nothing a person
wrote ever reaches it. When it does fire the cut is announced in the
text itself: an agent handed a fragment with no marker has no way to
tell it from an issue that simply ended there, so it judges the part it
saw and reports the confidence of having seen all of it.
The cut lands on a line boundary, and an unbalanced code fence is closed rather than left hanging. Broken markdown reads as a defect in the issue and costs the model attention to rule out.
pub fn is_closed(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Issue
impl<'de> Deserialize<'de> for Issue
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 Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnsafeUnpin for Issue
impl UnwindSafe for Issue
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