pub struct PluginPermissions {
pub read_vars: bool,
pub set_vars: bool,
pub http: bool,
pub log: bool,
}Expand description
Permissions a plugin may request from the host.
Fields§
§read_vars: boolCan read environment variables.
set_vars: boolCan set environment variables.
http: boolCan make HTTP requests.
log: boolCan write to the log.
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