pub struct Presets(pub BTreeMap<String, JobProfile>);Expand description
Named profiles between the classes, by name.
A [presets.<name>] table changes that preset field by field, like a class, or adds a new
one, which needs at least cores and ram_mb (GPU and VRAM default to 0, the run time
to 300 s). The default presets stay unless overridden.
Tuple Fields§
§0: BTreeMap<String, JobProfile>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Presets
impl<'de> Deserialize<'de> for Presets
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 StructuralPartialEq for Presets
Auto Trait Implementations§
impl Forget for Presets
impl Freeze for Presets
impl RefUnwindSafe for Presets
impl Send for Presets
impl Sync for Presets
impl Unpin for Presets
impl UnsafeUnpin for Presets
impl UnwindSafe for Presets
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