pub struct ReviewRequest {
pub target: ReviewTarget,
pub label: String,
pub prompt: String,
pub base_sha: Option<String>,
pub head_sha: Option<String>,
pub workspace_root: PathBuf,
}Expand description
Resolved, model-facing review request: the product of a ReviewTarget
and the current version-control state.
Fields§
§target: ReviewTarget§label: StringHuman-readable one-liner shown in the TUI (“review vs main”).
prompt: StringNatural-language prompt handed to the review turn.
base_sha: Option<String>Merge-base revision when the target implies one; used by publishers to anchor comments.
head_sha: Option<String>§workspace_root: PathBufTrait Implementations§
Source§impl Clone for ReviewRequest
impl Clone for ReviewRequest
Source§impl Debug for ReviewRequest
impl Debug for ReviewRequest
Source§impl<'de> Deserialize<'de> for ReviewRequest
impl<'de> Deserialize<'de> for ReviewRequest
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 ReviewRequest
impl RefUnwindSafe for ReviewRequest
impl Send for ReviewRequest
impl Sync for ReviewRequest
impl Unpin for ReviewRequest
impl UnsafeUnpin for ReviewRequest
impl UnwindSafe for ReviewRequest
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