pub struct CommentVerdict {
pub ref_id: String,
pub ask: Ask,
pub request: String,
pub reasoning: String,
pub unambiguous: bool,
pub new_issue_title: Option<String>,
pub new_issue_body: Option<String>,
}Expand description
One agent’s judgement of one comment somebody left on a pull request.
Fields§
§ref_id: StringThe handle spar printed beside the comment, copied back so the answer can be matched to it. Not a title: a finding’s title is the only handle there is because findings are model authored, but a comment is spar’s own data, so it gets one that cannot be paraphrased or collided.
ask: Ask§request: StringWhat is being asked for, in one sentence, in the agent’s own words. How spar checks the comment was understood before acting on it.
reasoning: StringThe whole argument. For a decline this is posted in the thread, so it is written for the person who raised the point.
unambiguous: boolFalse when the comment could be read more than one way. spar answers an ambiguous comment in words and never guesses at a commit.
new_issue_title: Option<String>§new_issue_body: Option<String>Trait Implementations§
Source§impl Clone for CommentVerdict
impl Clone for CommentVerdict
Source§fn clone(&self) -> CommentVerdict
fn clone(&self) -> CommentVerdict
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 CommentVerdict
impl Debug for CommentVerdict
Source§impl<'de> Deserialize<'de> for CommentVerdict
impl<'de> Deserialize<'de> for CommentVerdict
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 CommentVerdict
impl RefUnwindSafe for CommentVerdict
impl Send for CommentVerdict
impl Sync for CommentVerdict
impl Unpin for CommentVerdict
impl UnsafeUnpin for CommentVerdict
impl UnwindSafe for CommentVerdict
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