pub struct RunPolicy { /* private fields */ }Expand description
Strongly typed scope and execution policy carried with a resolved run.
Implementations§
Source§impl RunPolicy
impl RunPolicy
pub fn new() -> Self
pub fn allowed_tools(&self) -> Option<&[String]>
pub fn excluded_tools(&self) -> Option<&[String]>
pub fn allowed_skills(&self) -> Option<&[String]>
pub fn excluded_skills(&self) -> Option<&[String]>
pub fn allowed_agents(&self) -> Option<&[String]>
pub fn excluded_agents(&self) -> Option<&[String]>
pub fn set_allowed_tools_if_absent(&mut self, values: Option<&[String]>)
pub fn set_excluded_tools_if_absent(&mut self, values: Option<&[String]>)
pub fn set_allowed_skills_if_absent(&mut self, values: Option<&[String]>)
pub fn set_excluded_skills_if_absent(&mut self, values: Option<&[String]>)
pub fn set_allowed_agents_if_absent(&mut self, values: Option<&[String]>)
pub fn set_excluded_agents_if_absent(&mut self, values: Option<&[String]>)
Trait Implementations§
impl Eq for RunPolicy
impl StructuralPartialEq for RunPolicy
Auto Trait Implementations§
impl Freeze for RunPolicy
impl RefUnwindSafe for RunPolicy
impl Send for RunPolicy
impl Sync for RunPolicy
impl Unpin for RunPolicy
impl UnwindSafe for RunPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.