#[non_exhaustive]pub enum ForgePrState {
Open,
Closed,
Merged,
}Expand description
The normalised state of a ForgePr, unifying GitHub’s OPEN/CLOSED/
MERGED, GitLab’s opened/closed/locked/merged, and Gitea’s
open/closed (+ a merged flag).
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.
Open
Open / awaiting review.
Closed
Closed without merging (GitLab’s locked folds in here too).
Merged
Merged.
Trait Implementations§
Source§impl Clone for ForgePrState
impl Clone for ForgePrState
Source§fn clone(&self) -> ForgePrState
fn clone(&self) -> ForgePrState
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 ForgePrState
Source§impl Debug for ForgePrState
impl Debug for ForgePrState
impl Eq for ForgePrState
Source§impl PartialEq for ForgePrState
impl PartialEq for ForgePrState
Source§fn eq(&self, other: &ForgePrState) -> bool
fn eq(&self, other: &ForgePrState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ForgePrState
impl Serialize for ForgePrState
impl StructuralPartialEq for ForgePrState
Auto Trait Implementations§
impl Freeze for ForgePrState
impl RefUnwindSafe for ForgePrState
impl Send for ForgePrState
impl Sync for ForgePrState
impl Unpin for ForgePrState
impl UnsafeUnpin for ForgePrState
impl UnwindSafe for ForgePrState
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