Enum gitlab::api::projects::SquashOption
source · #[non_exhaustive]pub enum SquashOption {
Never,
Always,
DefaultOn,
DefaultOff,
}
Expand description
How squashing should be presented in the project.
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.
Never
Never allow squashing.
Always
Always squash.
DefaultOn
Default to squashing.
DefaultOff
Default to not squashing.
Trait Implementations§
source§impl Clone for SquashOption
impl Clone for SquashOption
source§fn clone(&self) -> SquashOption
fn clone(&self) -> SquashOption
Returns a copy 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 SquashOption
impl Debug for SquashOption
source§impl ParamValue<'static> for SquashOption
impl ParamValue<'static> for SquashOption
source§impl PartialEq for SquashOption
impl PartialEq for SquashOption
source§fn eq(&self, other: &SquashOption) -> bool
fn eq(&self, other: &SquashOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SquashOption
impl Eq for SquashOption
impl StructuralPartialEq for SquashOption
Auto Trait Implementations§
impl Freeze for SquashOption
impl RefUnwindSafe for SquashOption
impl Send for SquashOption
impl Sync for SquashOption
impl Unpin for SquashOption
impl UnwindSafe for SquashOption
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.