Struct deno_runtime::permissions::PermissionsOptions
source · pub struct PermissionsOptions {
pub allow_env: Option<Vec<String>>,
pub allow_hrtime: bool,
pub allow_net: Option<Vec<String>>,
pub allow_ffi: Option<Vec<PathBuf>>,
pub allow_read: Option<Vec<PathBuf>>,
pub allow_run: Option<Vec<String>>,
pub allow_sys: Option<Vec<String>>,
pub allow_write: Option<Vec<PathBuf>>,
pub prompt: bool,
}
Fields§
§allow_env: Option<Vec<String>>
§allow_hrtime: bool
§allow_net: Option<Vec<String>>
§allow_ffi: Option<Vec<PathBuf>>
§allow_read: Option<Vec<PathBuf>>
§allow_run: Option<Vec<String>>
§allow_sys: Option<Vec<String>>
§allow_write: Option<Vec<PathBuf>>
§prompt: bool
Trait Implementations§
source§impl Clone for PermissionsOptions
impl Clone for PermissionsOptions
source§fn clone(&self) -> PermissionsOptions
fn clone(&self) -> PermissionsOptions
Returns a copy 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 PermissionsOptions
impl Debug for PermissionsOptions
source§impl Default for PermissionsOptions
impl Default for PermissionsOptions
source§fn default() -> PermissionsOptions
fn default() -> PermissionsOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PermissionsOptions
impl<'de> Deserialize<'de> for PermissionsOptions
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
source§impl PartialEq<PermissionsOptions> for PermissionsOptions
impl PartialEq<PermissionsOptions> for PermissionsOptions
source§fn eq(&self, other: &PermissionsOptions) -> bool
fn eq(&self, other: &PermissionsOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PermissionsOptions
impl Serialize for PermissionsOptions
impl Eq for PermissionsOptions
impl StructuralEq for PermissionsOptions
impl StructuralPartialEq for PermissionsOptions
Auto Trait Implementations§
impl RefUnwindSafe for PermissionsOptions
impl Send for PermissionsOptions
impl Sync for PermissionsOptions
impl Unpin for PermissionsOptions
impl UnwindSafe for PermissionsOptions
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.