pub struct Opts {
pub mobile_to_desktop: bool,
pub ignore_unknown_versions: bool,
pub config: Option<String>,
pub env: Option<String>,
pub path: Option<String>,
pub throw_on_missing: bool,
pub dangerous_extend: bool,
}Expand description
Options for controlling the behavior of browserslist.
Fields§
§mobile_to_desktop: boolUse desktop browsers if Can I Use doesn’t have data about this mobile version.
ignore_unknown_versions: boolIf true, ignore unknown versions then return empty result;
otherwise, reject with an error.
config: Option<String>Path to configuration file with queries.
env: Option<String>Processing environment. It will be used to take right queries from config file.
path: Option<String>File or directory path for looking for configuration file.
throw_on_missing: boolThrow error on missing env.
dangerous_extend: boolDisable security checks for extends query.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Opts
impl<'de> Deserialize<'de> for Opts
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
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
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<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