#[non_exhaustive]pub enum CommentDetail {
Review(Box<Review>),
Comment(Box<Comment>),
Code(Box<Code>),
}Expand description
The comment detail. A comment can be a review, a general comment, or a code comment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Review(Box<Review>)
Optional. The review summary comment.
Comment(Box<Comment>)
Optional. The general pull request comment.
Code(Box<Code>)
Optional. The comment on a code line.
Trait Implementations§
Source§impl Clone for CommentDetail
impl Clone for CommentDetail
Source§fn clone(&self) -> CommentDetail
fn clone(&self) -> CommentDetail
Returns a duplicate of the value. Read more
1.0.0 · 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 CommentDetail
impl Debug for CommentDetail
Source§impl PartialEq for CommentDetail
impl PartialEq for CommentDetail
impl StructuralPartialEq for CommentDetail
Auto Trait Implementations§
impl Freeze for CommentDetail
impl RefUnwindSafe for CommentDetail
impl Send for CommentDetail
impl Sync for CommentDetail
impl Unpin for CommentDetail
impl UnwindSafe for CommentDetail
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