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,
}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.
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 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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.