pub struct HarnessTaskPermissionsV1 {
pub read: bool,
pub create: bool,
pub mutate: bool,
pub request_run: bool,
}Expand description
create/mutate gate g4a_task_create/g4a_task_move (D5, Slice D:
an agent’s own subtree only, never system-wide). #[serde(default)] on
both so a grant persisted before Slice D decodes with create: false,
mutate: false rather than failing closed on the whole record – the
rule since 2026-09-05: a persisted type gains a field only behind
#[serde(default)], proven by a test deserializing the pre-Slice-D
shape (the same discipline read_permissions already established).
Fields§
§read: bool§create: bool§mutate: bool§request_run: boolImplementations§
Source§impl HarnessTaskPermissionsV1
impl HarnessTaskPermissionsV1
pub fn validate(&self) -> Result<(), HarnessValidationError>
Trait Implementations§
Source§impl Clone for HarnessTaskPermissionsV1
impl Clone for HarnessTaskPermissionsV1
Source§impl Debug for HarnessTaskPermissionsV1
impl Debug for HarnessTaskPermissionsV1
Source§impl<'de> Deserialize<'de> for HarnessTaskPermissionsV1
impl<'de> Deserialize<'de> for HarnessTaskPermissionsV1
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 HarnessTaskPermissionsV1
Source§impl PartialEq for HarnessTaskPermissionsV1
impl PartialEq for HarnessTaskPermissionsV1
Source§impl Serialize for HarnessTaskPermissionsV1
impl Serialize for HarnessTaskPermissionsV1
impl StructuralPartialEq for HarnessTaskPermissionsV1
Auto Trait Implementations§
impl Freeze for HarnessTaskPermissionsV1
impl RefUnwindSafe for HarnessTaskPermissionsV1
impl Send for HarnessTaskPermissionsV1
impl Sync for HarnessTaskPermissionsV1
impl Unpin for HarnessTaskPermissionsV1
impl UnsafeUnpin for HarnessTaskPermissionsV1
impl UnwindSafe for HarnessTaskPermissionsV1
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