pub struct GetOptionsPreferences {
pub are_configurable_strings_enabled: bool,
pub constraints: Option<Constraints>,
pub overrides: Option<Value>,
pub skip_feature_name_conversion: bool,
}Fields§
§are_configurable_strings_enabled: boolAllows resolving configurable strings. Defaults to false: no configurable strings will be resolved. Configurable strings must have been enabled when the options were built to have them resolved at runtime.
constraints: Option<Constraints>§overrides: Option<Value>Overrides to apply after the built configuration.
skip_feature_name_conversion: boolDetermines if the feature names should be converted to canonical feature names. Defaults to false: given features names will be converted to canonical feature names before looking for features or options.
Implementations§
Source§impl GetOptionsPreferences
impl GetOptionsPreferences
pub fn new() -> Self
pub fn set_constraints(&mut self, constraints: Option<Value>)
pub fn set_constraints_json(&mut self, constraints: Option<&str>)
Trait Implementations§
Source§impl Clone for GetOptionsPreferences
impl Clone for GetOptionsPreferences
Source§fn clone(&self) -> GetOptionsPreferences
fn clone(&self) -> GetOptionsPreferences
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 Default for GetOptionsPreferences
impl Default for GetOptionsPreferences
Source§impl Hash for GetOptionsPreferences
impl Hash for GetOptionsPreferences
Source§impl PartialEq for GetOptionsPreferences
impl PartialEq for GetOptionsPreferences
impl Eq for GetOptionsPreferences
impl StructuralPartialEq for GetOptionsPreferences
Auto Trait Implementations§
impl Freeze for GetOptionsPreferences
impl RefUnwindSafe for GetOptionsPreferences
impl Send for GetOptionsPreferences
impl Sync for GetOptionsPreferences
impl Unpin for GetOptionsPreferences
impl UnwindSafe for GetOptionsPreferences
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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