Struct resctl_bench_intf::jobspec::JobSpec
source · [−]pub struct JobSpec {
pub kind: String,
pub id: Option<String>,
pub passive: Option<String>,
pub props: JobProps,
}
Fields
kind: String
id: Option<String>
passive: Option<String>
props: JobProps
Implementations
sourceimpl JobSpec
impl JobSpec
pub fn props(input: &[&[(&str, &str)]]) -> Vec<BTreeMap<String, String>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn new(
kind: &str,
id: Option<&str>,
passive: Option<&str>,
props: JobProps
) -> Self
pub fn compatible(&self, other: &Self) -> bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for JobSpec
impl<'de> Deserialize<'de> for JobSpec
sourcefn 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 StructuralPartialEq for JobSpec
Auto Trait Implementations
impl RefUnwindSafe for JobSpec
impl Send for JobSpec
impl Sync for JobSpec
impl Unpin for JobSpec
impl UnwindSafe for JobSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more