#[non_exhaustive]pub enum JobParameterType {
String,
Int,
Float,
Path,
Bool,
RangeExpr,
ListString,
ListInt,
ListFloat,
ListPath,
ListBool,
ListListInt,
}Expand description
The type of a job parameter definition.
Marked #[non_exhaustive] so that future revisions and extensions can
add parameter types (as RFC 0007 already did for Bool, RangeExpr,
and the List[…] family) without a SemVer break.
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.
Implementations§
Source§impl JobParameterType
impl JobParameterType
Sourcepub fn from_spec_str(s: &str) -> Option<Self>
pub fn from_spec_str(s: &str) -> Option<Self>
Parse from the spec string (case-insensitive).
Sourcepub fn as_spec_str(&self) -> &'static str
pub fn as_spec_str(&self) -> &'static str
Returns the canonical spec string.
Trait Implementations§
Source§impl Clone for JobParameterType
impl Clone for JobParameterType
Source§fn clone(&self) -> JobParameterType
fn clone(&self) -> JobParameterType
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 moreSource§impl Debug for JobParameterType
impl Debug for JobParameterType
Source§impl Display for JobParameterType
impl Display for JobParameterType
Source§impl Hash for JobParameterType
impl Hash for JobParameterType
Source§impl PartialEq for JobParameterType
impl PartialEq for JobParameterType
Source§fn eq(&self, other: &JobParameterType) -> bool
fn eq(&self, other: &JobParameterType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for JobParameterType
impl Serialize for JobParameterType
impl Copy for JobParameterType
impl Eq for JobParameterType
impl StructuralPartialEq for JobParameterType
Auto Trait Implementations§
impl Freeze for JobParameterType
impl RefUnwindSafe for JobParameterType
impl Send for JobParameterType
impl Sync for JobParameterType
impl Unpin for JobParameterType
impl UnsafeUnpin for JobParameterType
impl UnwindSafe for JobParameterType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more