pub enum PolicySubject<'a> {
Command(&'a [String]),
Read(&'a [String]),
Edit(&'a [String]),
Mcp {
server: &'a str,
tool: &'a str,
},
}Expand description
A rule’s subject, once validated.
Variants§
Implementations§
Source§impl PolicySubject<'_>
impl PolicySubject<'_>
pub const fn kind(&self) -> PolicySubjectKind
Trait Implementations§
Source§impl<'a> Clone for PolicySubject<'a>
impl<'a> Clone for PolicySubject<'a>
impl<'a> Copy for PolicySubject<'a>
Source§impl<'a> Debug for PolicySubject<'a>
impl<'a> Debug for PolicySubject<'a>
impl<'a> Eq for PolicySubject<'a>
Source§impl<'a> PartialEq for PolicySubject<'a>
impl<'a> PartialEq for PolicySubject<'a>
impl<'a> StructuralPartialEq for PolicySubject<'a>
Auto Trait Implementations§
impl<'a> Freeze for PolicySubject<'a>
impl<'a> RefUnwindSafe for PolicySubject<'a>
impl<'a> Send for PolicySubject<'a>
impl<'a> Sync for PolicySubject<'a>
impl<'a> Unpin for PolicySubject<'a>
impl<'a> UnsafeUnpin for PolicySubject<'a>
impl<'a> UnwindSafe for PolicySubject<'a>
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.