[][src]Struct taplo_cli::config::Config

pub struct Config {
    pub include: Option<Vec<String>>,
    pub exclude: Option<Vec<String>>,
    pub rule: Option<Vec<Rule>>,
    pub global_options: Options,
}

Fields

include: Option<Vec<String>>

Files to include.

A list of Unix-like glob path patterns. Globstars (**) are supported.

Relative paths are not relative to the configuration file, but rather depends on the tool using the configuration.

Omitting this property includes all files, however an empty array will include none.

exclude: Option<Vec<String>>

Files to exclude (ignore).

A list of Unix-like glob path patterns. Globstars (**) are supported.

Relative paths are not relative to the configuration file, but rather depends on the tool using the configuration.

This has priority over include.

rule: Option<Vec<Rule>>

Rules are used to override configurations by path and keys.

global_options: Options

Implementations

impl Config[src]

pub fn is_excluded(&self, path: &str) -> Result<bool, PatternError>[src]

Tell if a path is excluded

pub async fn get_schema<'_, '_>(
    &'_ self,
    path: &'_ str
) -> Result<Option<RootSchema>, Error>
[src]

pub fn get_schema_path(&self, path: &str) -> Result<Option<String>, Error>[src]

pub fn collect_schemas(&self) -> Vec<String>[src]

pub fn get_include_paths(&self) -> Vec<String>[src]

pub fn check_patterns(&self) -> Result<(), PatternError>[src]

pub fn get_formatter_options(
    &self,
    path: Option<&str>,
    default_opts: Option<Options>
) -> Result<(Options, Vec<(String, OptionsIncomplete)>), PatternError>
[src]

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl Eq for Config[src]

impl JsonSchema for Config[src]

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralEq for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.