pub enum GrantDirection {
Narrow,
Widen,
}Expand description
The direction of a CandidateContent::ToolPermission change.
Closed enum: the direction is the R0.8 contract — grant mechanics
(which capabilities a narrowed grant drops, how a widened one is
bounded) are R0.9’s capsule-manifest work, and this release gates
every tool-permission candidate behind a human approval regardless.
Variants§
Narrow
The grant shrinks (a capability is withdrawn).
Widen
The grant grows (a capability is added).
Trait Implementations§
Source§impl Clone for GrantDirection
impl Clone for GrantDirection
impl Copy for GrantDirection
Source§impl Debug for GrantDirection
impl Debug for GrantDirection
Source§impl<'de> Deserialize<'de> for GrantDirection
impl<'de> Deserialize<'de> for GrantDirection
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 GrantDirection
Source§impl Hash for GrantDirection
impl Hash for GrantDirection
Source§impl PartialEq for GrantDirection
impl PartialEq for GrantDirection
Source§impl Serialize for GrantDirection
impl Serialize for GrantDirection
impl StructuralPartialEq for GrantDirection
Auto Trait Implementations§
impl Freeze for GrantDirection
impl RefUnwindSafe for GrantDirection
impl Send for GrantDirection
impl Sync for GrantDirection
impl Unpin for GrantDirection
impl UnsafeUnpin for GrantDirection
impl UnwindSafe for GrantDirection
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