Enum gitlab::api::projects::ContainerExpirationKeepN
source · #[non_exhaustive]pub enum ContainerExpirationKeepN {
One,
Five,
Ten,
TwentyFive,
Fifty,
OneHundred,
Arbitrary(u64),
}
Expand description
How many container instances to keep around.
Note that GitLab only supports a few discrete values for this setting.
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.
One
Only one.
Five
Up to five.
Ten
Up to ten.
TwentyFive
Up to twenty-five.
Fifty
Up to fifty.
OneHundred
Up to one hundred.
Arbitrary(u64)
Arbitrary number.
Trait Implementations§
source§impl Clone for ContainerExpirationKeepN
impl Clone for ContainerExpirationKeepN
source§fn clone(&self) -> ContainerExpirationKeepN
fn clone(&self) -> ContainerExpirationKeepN
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 ContainerExpirationKeepN
impl Debug for ContainerExpirationKeepN
source§impl From<u64> for ContainerExpirationKeepN
impl From<u64> for ContainerExpirationKeepN
source§impl Ord for ContainerExpirationKeepN
impl Ord for ContainerExpirationKeepN
source§impl ParamValue<'static> for ContainerExpirationKeepN
impl ParamValue<'static> for ContainerExpirationKeepN
source§impl PartialEq for ContainerExpirationKeepN
impl PartialEq for ContainerExpirationKeepN
source§impl PartialOrd for ContainerExpirationKeepN
impl PartialOrd for ContainerExpirationKeepN
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ContainerExpirationKeepN
impl Eq for ContainerExpirationKeepN
Auto Trait Implementations§
impl Freeze for ContainerExpirationKeepN
impl RefUnwindSafe for ContainerExpirationKeepN
impl Send for ContainerExpirationKeepN
impl Sync for ContainerExpirationKeepN
impl Unpin for ContainerExpirationKeepN
impl UnwindSafe for ContainerExpirationKeepN
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more