pub struct Capabilities {
pub net: bool,
pub write_paths: Vec<String>,
pub read_paths: Vec<String>,
pub env: EnvPolicy,
}Expand description
Per-node capability declaration. Defaults match the most permissive
“trust + log” baseline (network on, write to cwd, env scrubbed) so a node
without an explicit capabilities field still works the same as a manual
shell invocation.
Fields§
§net: bool§write_paths: Vec<String>Paths the command may write to. The literal token "cwd" is
substituted with the actual cwd at wrap time.
read_paths: Vec<String>Paths the command may read from. Empty means read-anywhere (the
command inherits the OS’s default read access). Same "cwd" token
substitution as write_paths.
env: EnvPolicyEnvironment forwarding policy.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
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 Capabilities
impl Debug for Capabilities
Source§impl Default for Capabilities
impl Default for Capabilities
Source§impl<'de> Deserialize<'de> for Capabilities
impl<'de> Deserialize<'de> for Capabilities
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 Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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