pub struct ProcessPluginInfo {
pub info: PluginInfo,
pub allow_plugin_override_config: bool,
}Expand description
Information about a process plugin.
Fields§
§info: PluginInfoThe information that every plugin provides.
allow_plugin_override_config: boolWhether another plugin may change this plugin’s non-global configuration
when it asks dprint to format text with this plugin (ex. a Wasm plugin
formatting a code block). Another plugin can always change the global
configuration (ex. lineWidth). This doesn’t affect configuration from
anywhere else, such as a config file.
Process plugins don’t run sandboxed and the requesting plugin might be a
Wasm plugin from an untrusted source (ex. remote configuration), so only
set this to true when no configuration could make the plugin do
something harmful, such as run a command provided in the configuration
(ex. dprint-plugin-exec).
Trait Implementations§
Source§impl Clone for ProcessPluginInfo
impl Clone for ProcessPluginInfo
Source§impl Debug for ProcessPluginInfo
impl Debug for ProcessPluginInfo
impl Eq for ProcessPluginInfo
Source§impl PartialEq for ProcessPluginInfo
impl PartialEq for ProcessPluginInfo
Source§impl Serialize for ProcessPluginInfo
impl Serialize for ProcessPluginInfo
impl StructuralPartialEq for ProcessPluginInfo
Auto Trait Implementations§
impl Forget for ProcessPluginInfo
impl Freeze for ProcessPluginInfo
impl Move for ProcessPluginInfo
impl RefUnwindSafe for ProcessPluginInfo
impl Send for ProcessPluginInfo
impl Sync for ProcessPluginInfo
impl Unpin for ProcessPluginInfo
impl UnsafeUnpin for ProcessPluginInfo
impl UnwindSafe for ProcessPluginInfo
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.