pub struct FocusedReview {
pub candidate_decisions: Vec<FocusedReviewDecision>,
pub project_impact: Vec<String>,
pub suggestions: Vec<FocusedReviewSuggestion>,
}Expand description
Structured result returned by a focused-review utility prompt.
Fields§
§candidate_decisions: Vec<FocusedReviewDecision>Per-candidate accounting supplied only during consolidation.
project_impact: Vec<String>Concise statements describing the overall effect of the reviewed diff.
suggestions: Vec<FocusedReviewSuggestion>Actionable high- or medium-severity findings from the reviewed diff.
Implementations§
Source§impl FocusedReview
impl FocusedReview
Sourcepub fn validate_candidate_decisions(
&self,
candidate_count: usize,
) -> Result<(), String>
pub fn validate_candidate_decisions( &self, candidate_count: usize, ) -> Result<(), String>
Rejects incomplete consolidation accounting before callers replace their original findings. Indices refer to this call’s input and output.
§Errors
Returns a diagnostic for missing, duplicate, out-of-range, or unexplained candidate decisions, or outputs without an input disposition.
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Formats the structured review for the terminal session transcript.
Trait Implementations§
Source§impl Clone for FocusedReview
impl Clone for FocusedReview
Source§impl Debug for FocusedReview
impl Debug for FocusedReview
Source§impl<'de> Deserialize<'de> for FocusedReview
impl<'de> Deserialize<'de> for FocusedReview
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
impl Eq for FocusedReview
Source§impl JsonSchema for FocusedReview
impl JsonSchema for FocusedReview
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FocusedReview
impl PartialEq for FocusedReview
Source§impl Serialize for FocusedReview
impl Serialize for FocusedReview
impl StructuralPartialEq for FocusedReview
Auto Trait Implementations§
impl Forget for FocusedReview
impl Freeze for FocusedReview
impl Move for FocusedReview
impl RefUnwindSafe for FocusedReview
impl Send for FocusedReview
impl Sync for FocusedReview
impl Unpin for FocusedReview
impl UnsafeUnpin for FocusedReview
impl UnwindSafe for FocusedReview
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.