pub struct RuntimePreset {
pub preset_name: &'static str,
pub label: &'static str,
pub help: &'static str,
pub values: fn() -> RuntimeProfileConfig,
}Expand description
One row in the Runtime preset table. Same shape and contract as
RiskPreset — see its docs for the per-field semantics.
Fields§
§preset_name: &'static strAlias key written to runtime-profiles.<preset_name>. Doubles
as the stable wire identifier (BuilderSubmission.runtime_preset).
label: &'static strShort label rendered in the picker UI.
help: &'static strOne-line help blurb rendered next to the label.
values: fn() -> RuntimeProfileConfigFactory that produces the RuntimeProfileConfig this preset
installs.
Trait Implementations§
Source§impl Clone for RuntimePreset
impl Clone for RuntimePreset
Source§fn clone(&self) -> RuntimePreset
fn clone(&self) -> RuntimePreset
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 RuntimePreset
impl Debug for RuntimePreset
Source§impl Serialize for RuntimePreset
impl Serialize for RuntimePreset
impl Copy for RuntimePreset
Auto Trait Implementations§
impl Freeze for RuntimePreset
impl RefUnwindSafe for RuntimePreset
impl Send for RuntimePreset
impl Sync for RuntimePreset
impl Unpin for RuntimePreset
impl UnsafeUnpin for RuntimePreset
impl UnwindSafe for RuntimePreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more