pub struct PluginInfo {
pub name: String,
pub version: String,
pub config_key: String,
pub help_url: String,
pub config_schema_url: String,
pub update_url: Option<String>,
pub supports_range_formatting: bool,
pub skip_stable_format: bool,
}Expand description
Information about a plugin.
Fields§
§name: StringThe name of the plugin.
version: StringThe version of the plugin.
config_key: StringGets the key that can be used in the configuration JSON.
help_url: StringA url the user can go to in order to get help information about the plugin.
config_schema_url: StringSchema url for the plugin configuration.
Generally in the format: https://plugins.dprint.dev/
update_url: Option<String>Plugin update url.
Generally in the format: https://plugins.dprint.dev/
supports_range_formatting: boolWhether the plugin formats the range of a format request.
true- Editors give the plugin the range as it is and use what it formats, so it decides what to format around the range (ex. the nodes it overlaps).false- Editors don’t format a range with the plugin.
skip_stable_format: boolWhether dprint should skip formatting a file again until the output is stable when the plugin changes the file.
By default, dprint formats the text a plugin changed again until it
stops changing to catch plugins that format differently each time. Only
set this to true when formatting the plugin’s output again never
changes it with any configuration. This saves formatting each changed
file at least one more time and the output is still stored as formatted
for incremental formatting.
When the plugin formats embedded text with other plugins (ex. code blocks), dprint formats that text again until it’s stable unless those plugins say the same.
Trait Implementations§
Source§impl Clone for PluginInfo
impl Clone for PluginInfo
Source§impl Debug for PluginInfo
impl Debug for PluginInfo
impl Eq for PluginInfo
Source§impl PartialEq for PluginInfo
impl PartialEq for PluginInfo
Source§impl Serialize for PluginInfo
impl Serialize for PluginInfo
impl StructuralPartialEq for PluginInfo
Auto Trait Implementations§
impl Forget for PluginInfo
impl Freeze for PluginInfo
impl Move for PluginInfo
impl RefUnwindSafe for PluginInfo
impl Send for PluginInfo
impl Sync for PluginInfo
impl Unpin for PluginInfo
impl UnsafeUnpin for PluginInfo
impl UnwindSafe for PluginInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.