pub struct FileMatchingInfo {
pub file_extensions: Vec<String>,
pub file_names: Vec<String>,
pub additive: bool,
}Expand description
The plugin file matching information based on the configuration.
Fields§
§file_extensions: Vec<String>The file extensions this plugin should format.
file_names: Vec<String>The file names this plugin should format.
additive: boolWhether the plugin formats a file it matches in addition to the plugin that claims the file, rather than claiming the file itself.
This is for plugins that do something to a file other than format it
from scratch (ex. sorting the keys of a package.json), which would
otherwise stop the file’s usual formatter from running.
Trait Implementations§
Source§impl Clone for FileMatchingInfo
impl Clone for FileMatchingInfo
Source§impl Debug for FileMatchingInfo
impl Debug for FileMatchingInfo
Source§impl<'de> Deserialize<'de> for FileMatchingInfo
impl<'de> Deserialize<'de> for FileMatchingInfo
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
impl Eq for FileMatchingInfo
Source§impl PartialEq for FileMatchingInfo
impl PartialEq for FileMatchingInfo
Source§impl Serialize for FileMatchingInfo
impl Serialize for FileMatchingInfo
impl StructuralPartialEq for FileMatchingInfo
Auto Trait Implementations§
impl Freeze for FileMatchingInfo
impl RefUnwindSafe for FileMatchingInfo
impl Send for FileMatchingInfo
impl Sync for FileMatchingInfo
impl Unpin for FileMatchingInfo
impl UnsafeUnpin for FileMatchingInfo
impl UnwindSafe for FileMatchingInfo
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.