pub struct Profile {
pub meta: Option<ProfileMeta>,
pub network: Option<NetworkConfig>,
pub filesystem: Option<FilesystemConfig>,
pub env: Option<EnvConfig>,
}Fields§
§meta: Option<ProfileMeta>§network: Option<NetworkConfig>§filesystem: Option<FilesystemConfig>§env: Option<EnvConfig>Implementations§
Source§impl Profile
impl Profile
Sourcepub fn merge(&mut self, other: &Profile)
pub fn merge(&mut self, other: &Profile)
Merge another profile on top of this one (union semantics).
Sourcepub fn merge_restrictive(&mut self, other: &Profile)
pub fn merge_restrictive(&mut self, other: &Profile)
Merge another profile using restrictive-only semantics. Can only ADD restrictions (more deny_read, more scrub patterns). Cannot ADD permissions (network.allow, allow_write, env.pass are IGNORED). Used for project configs (safe-shell.toml) and global configs to prevent a malicious repo from relaxing the sandbox.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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