[−][src]Struct taplo_cli::config::Config
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: OptionsImplementations
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]
&'_ self,
path: &'_ str
) -> Result<Option<RootSchema>, Error>
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]
&self,
path: Option<&str>,
default_opts: Option<Options>
) -> Result<(Options, Vec<(String, OptionsIncomplete)>), PatternError>
Trait Implementations
impl Clone for Config[src]
impl Debug for Config[src]
impl Default for Config[src]
impl<'de> Deserialize<'de> for Config[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for Config[src]
impl JsonSchema for Config[src]
fn schema_name() -> String[src]
fn json_schema(gen: &mut SchemaGenerator) -> Schema[src]
fn is_referenceable() -> bool[src]
impl PartialEq<Config> for Config[src]
impl Serialize for Config[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone, [src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,