Struct browserslist::Opts
source · 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: bool
Use desktop browsers if Can I Use doesn’t have data about this mobile version.
ignore_unknown_versions: bool
If 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: bool
Throw error on missing env.
dangerous_extend: bool
Disable 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> 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