pub enum JobType {
Tests,
StaticAnalysis,
IndexBuild,
}Expand description
tests, static_analysis or index_build.
Variants§
Implementations§
Source§impl JobType
impl JobType
pub const ALL: [JobType; 3]
pub fn as_str(self) -> &'static str
pub fn parse(value: &str) -> Option<Self>
Sourcepub fn formats(self) -> &'static [ResultFormat]
pub fn formats(self) -> &'static [ResultFormat]
The result formats the contract allows for this type.
Sourcepub fn default_format(self) -> ResultFormat
pub fn default_format(self) -> ResultFormat
The format a job of this type gets when the caller names none.
Trait Implementations§
impl Copy for JobType
Source§impl<'de> Deserialize<'de> for JobType
impl<'de> Deserialize<'de> for JobType
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 JobType
Source§impl Ord for JobType
impl Ord for JobType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for JobType
impl PartialOrd for JobType
impl StructuralPartialEq for JobType
Auto Trait Implementations§
impl Freeze for JobType
impl RefUnwindSafe for JobType
impl Send for JobType
impl Sync for JobType
impl Unpin for JobType
impl UnsafeUnpin for JobType
impl UnwindSafe for JobType
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