#[non_exhaustive]pub enum ChangeState {
Open,
Merged {
into: String,
commit: Sha,
landing: bool,
merged_at: Option<String>,
},
Closed {
base_deleted: bool,
},
}Expand description
Whether a change request is open, merged, or closed without merging.
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, for review or as a draft.
Merged
Merged. landing is true exactly when into is the request’s root.
Fields
Closed
Closed without merging. base_deleted is true when the branch it targets no
longer exists on the origin.
Trait Implementations§
Source§impl Clone for ChangeState
impl Clone for ChangeState
Source§impl Debug for ChangeState
impl Debug for ChangeState
Source§impl<'de> Deserialize<'de> for ChangeState
impl<'de> Deserialize<'de> for ChangeState
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 ChangeState
Source§impl PartialEq for ChangeState
impl PartialEq for ChangeState
Source§impl Serialize for ChangeState
impl Serialize for ChangeState
impl StructuralPartialEq for ChangeState
Auto Trait Implementations§
impl Freeze for ChangeState
impl RefUnwindSafe for ChangeState
impl Send for ChangeState
impl Sync for ChangeState
impl Unpin for ChangeState
impl UnsafeUnpin for ChangeState
impl UnwindSafe for ChangeState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.