pub struct ResourcesDef {
pub requires: Vec<String>,
pub memory: HashMap<String, String>,
pub cpu_time: Option<String>,
pub gpu: HashMap<String, String>,
pub other: HashMap<String, Value>,
}Fields§
§requires: Vec<String>§memory: HashMap<String, String>§cpu_time: Option<String>§gpu: HashMap<String, String>§other: HashMap<String, Value>Trait Implementations§
Source§impl Clone for ResourcesDef
impl Clone for ResourcesDef
Source§fn clone(&self) -> ResourcesDef
fn clone(&self) -> ResourcesDef
Returns a duplicate 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 ResourcesDef
impl Debug for ResourcesDef
Source§impl<'de> Deserialize<'de> for ResourcesDef
impl<'de> Deserialize<'de> for ResourcesDef
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 ResourcesDef
impl PartialEq for ResourcesDef
Source§impl Serialize for ResourcesDef
impl Serialize for ResourcesDef
impl StructuralPartialEq for ResourcesDef
Auto Trait Implementations§
impl Freeze for ResourcesDef
impl RefUnwindSafe for ResourcesDef
impl Send for ResourcesDef
impl Sync for ResourcesDef
impl Unpin for ResourcesDef
impl UnwindSafe for ResourcesDef
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