pub struct PluginPermissions {
pub network: bool,
pub filesystem: bool,
pub subprocess: bool,
pub data_paths: Vec<String>,
pub event_types: Vec<String>,
}Expand description
Permissions requested by a plugin.
Fields§
§network: boolCan make network requests.
filesystem: boolCan access filesystem.
subprocess: boolCan spawn subprocesses.
data_paths: Vec<String>Allowed data paths.
event_types: Vec<String>Allowed event types.
Trait Implementations§
Source§impl Clone for PluginPermissions
impl Clone for PluginPermissions
Source§fn clone(&self) -> PluginPermissions
fn clone(&self) -> PluginPermissions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginPermissions
impl Debug for PluginPermissions
Source§impl Default for PluginPermissions
impl Default for PluginPermissions
Source§fn default() -> PluginPermissions
fn default() -> PluginPermissions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginPermissions
impl<'de> Deserialize<'de> for PluginPermissions
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
Auto Trait Implementations§
impl Freeze for PluginPermissions
impl RefUnwindSafe for PluginPermissions
impl Send for PluginPermissions
impl Sync for PluginPermissions
impl Unpin for PluginPermissions
impl UnsafeUnpin for PluginPermissions
impl UnwindSafe for PluginPermissions
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