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