pub enum DataPolicy {
LocalOnly,
Any,
}Expand description
How a job’s data may be handled.
This is discovery metadata, consumed by the agent harness — it is not
enforcement. What actually gates file access is the capability list, checked
by the host at runtime. The distinction matters: data_policy tells the
calling agent to behave differently (pass paths, not contents), while
capabilities tell the sandbox what it may touch.
Variants§
LocalOnly
Content must not leave the machine; the agent should pass paths.
Any
No special handling requested.
Trait Implementations§
Source§impl Clone for DataPolicy
impl Clone for DataPolicy
Source§fn clone(&self) -> DataPolicy
fn clone(&self) -> DataPolicy
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 DataPolicy
Source§impl Debug for DataPolicy
impl Debug for DataPolicy
impl Eq for DataPolicy
Source§impl PartialEq for DataPolicy
impl PartialEq for DataPolicy
impl StructuralPartialEq for DataPolicy
Auto Trait Implementations§
impl Freeze for DataPolicy
impl RefUnwindSafe for DataPolicy
impl Send for DataPolicy
impl Sync for DataPolicy
impl Unpin for DataPolicy
impl UnsafeUnpin for DataPolicy
impl UnwindSafe for DataPolicy
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