#[non_exhaustive]pub enum ProfileSpec {
Class(JobClass),
Preset(String),
Custom(JobProfile),
}Expand description
How a request states the resources a job needs.
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.
Class(JobClass)
A named class, resolved through the daemon’s config.
Preset(String)
A named preset from the daemon’s config, for example cpu_small. The lease records it
as a custom profile with no class.
Custom(JobProfile)
Explicit values.
Trait Implementations§
Source§impl Clone for ProfileSpec
impl Clone for ProfileSpec
Source§impl Debug for ProfileSpec
impl Debug for ProfileSpec
Source§impl<'de> Deserialize<'de> for ProfileSpec
impl<'de> Deserialize<'de> for ProfileSpec
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
Source§impl PartialEq for ProfileSpec
impl PartialEq for ProfileSpec
Source§impl Serialize for ProfileSpec
impl Serialize for ProfileSpec
impl StructuralPartialEq for ProfileSpec
Auto Trait Implementations§
impl Forget for ProfileSpec
impl Freeze for ProfileSpec
impl Move for ProfileSpec
impl RefUnwindSafe for ProfileSpec
impl Send for ProfileSpec
impl Sync for ProfileSpec
impl Unpin for ProfileSpec
impl UnsafeUnpin for ProfileSpec
impl UnwindSafe for ProfileSpec
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