#[non_exhaustive]pub enum ReviewKind {
Approve,
RequestChanges,
Comment,
}Expand description
Which kind of review GitHubApi::pr_review submits — match on
ReviewAction::kind to read it back.
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.
Approve
Approve (--approve).
RequestChanges
Request changes (--request-changes).
Comment
A comment-only review (--comment).
Trait Implementations§
Source§impl Clone for ReviewKind
impl Clone for ReviewKind
Source§fn clone(&self) -> ReviewKind
fn clone(&self) -> ReviewKind
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 moreimpl Copy for ReviewKind
Source§impl Debug for ReviewKind
impl Debug for ReviewKind
impl Eq for ReviewKind
Source§impl PartialEq for ReviewKind
impl PartialEq for ReviewKind
Source§fn eq(&self, other: &ReviewKind) -> bool
fn eq(&self, other: &ReviewKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReviewKind
Auto Trait Implementations§
impl Freeze for ReviewKind
impl RefUnwindSafe for ReviewKind
impl Send for ReviewKind
impl Sync for ReviewKind
impl Unpin for ReviewKind
impl UnsafeUnpin for ReviewKind
impl UnwindSafe for ReviewKind
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