Struct dprint_core::plugins::PluginInfo
source · [−]pub struct PluginInfo {
pub name: String,
pub version: String,
pub config_key: String,
pub file_extensions: Vec<String>,
pub file_names: Vec<String>,
pub help_url: String,
pub config_schema_url: String,
pub update_url: Option<String>,
}
Expand description
Information about a plugin.
Fields
name: String
The name of the plugin.
version: String
The version of the plugin.
config_key: String
Gets the key that can be used in the configuration JSON.
file_extensions: Vec<String>
The file extensions this plugin should format.
file_names: Vec<String>
The file names this plugin should format.
help_url: String
A url the user can go to in order to get help information about the plugin.
config_schema_url: String
Schema 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/
Trait Implementations
sourceimpl Clone for PluginInfo
impl Clone for PluginInfo
sourcefn clone(&self) -> PluginInfo
fn clone(&self) -> PluginInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PluginInfo
impl Debug for PluginInfo
sourceimpl<'de> Deserialize<'de> for PluginInfo
impl<'de> Deserialize<'de> for PluginInfo
sourcefn 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
sourceimpl PartialEq<PluginInfo> for PluginInfo
impl PartialEq<PluginInfo> for PluginInfo
sourcefn eq(&self, other: &PluginInfo) -> bool
fn eq(&self, other: &PluginInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PluginInfo) -> bool
fn ne(&self, other: &PluginInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for PluginInfo
impl Serialize for PluginInfo
impl StructuralPartialEq for PluginInfo
Auto Trait Implementations
impl RefUnwindSafe for PluginInfo
impl Send for PluginInfo
impl Sync for PluginInfo
impl Unpin for PluginInfo
impl UnwindSafe for PluginInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more