pub enum ReviewResponse {
Diff {
protocol_version: u32,
outcome: ReviewOutcome,
repository_root: PathBuf,
scope: DiffScope,
submission: Option<ReviewSubmission>,
},
Markdown {
protocol_version: u32,
outcome: ReviewOutcome,
source_path: Option<String>,
submission: Option<MarkdownReviewSubmission>,
},
}Variants§
Diff
Markdown
Implementations§
Source§impl ReviewResponse
impl ReviewResponse
pub const fn protocol_version(&self) -> u32
pub const fn outcome(&self) -> ReviewOutcome
Trait Implementations§
Source§impl Clone for ReviewResponse
impl Clone for ReviewResponse
Source§fn clone(&self) -> ReviewResponse
fn clone(&self) -> ReviewResponse
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 ReviewResponse
impl Debug for ReviewResponse
Source§impl<'de> Deserialize<'de> for ReviewResponse
impl<'de> Deserialize<'de> for ReviewResponse
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 ReviewResponse
Source§impl PartialEq for ReviewResponse
impl PartialEq for ReviewResponse
Source§impl Serialize for ReviewResponse
impl Serialize for ReviewResponse
impl StructuralPartialEq for ReviewResponse
Auto Trait Implementations§
impl Freeze for ReviewResponse
impl RefUnwindSafe for ReviewResponse
impl Send for ReviewResponse
impl Sync for ReviewResponse
impl Unpin for ReviewResponse
impl UnsafeUnpin for ReviewResponse
impl UnwindSafe for ReviewResponse
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