pub struct CommandPolicy {
pub network: NetworkPolicy,
pub worktree: WorktreeAccess,
pub environment: EnvironmentPolicy,
}Expand description
The command policy a run was executed under. Part of the evidence chain: it records what the run was allowed to do, not merely what it did.
Fields§
§network: NetworkPolicyEgress policy.
worktree: WorktreeAccessHow the worktree was mounted.
environment: EnvironmentPolicyHow the process environment was prepared.
Trait Implementations§
Source§impl Clone for CommandPolicy
impl Clone for CommandPolicy
Source§fn clone(&self) -> CommandPolicy
fn clone(&self) -> CommandPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandPolicy
Source§impl Debug for CommandPolicy
impl Debug for CommandPolicy
Source§impl Default for CommandPolicy
impl Default for CommandPolicy
Source§fn default() -> CommandPolicy
fn default() -> CommandPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandPolicy
impl<'de> Deserialize<'de> for CommandPolicy
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
impl Eq for CommandPolicy
Source§impl PartialEq for CommandPolicy
impl PartialEq for CommandPolicy
Source§impl Serialize for CommandPolicy
impl Serialize for CommandPolicy
impl StructuralPartialEq for CommandPolicy
Auto Trait Implementations§
impl Freeze for CommandPolicy
impl RefUnwindSafe for CommandPolicy
impl Send for CommandPolicy
impl Sync for CommandPolicy
impl Unpin for CommandPolicy
impl UnsafeUnpin for CommandPolicy
impl UnwindSafe for CommandPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.