pub enum PolicyScope {
Session,
VerificationPhase,
Both,
}Expand description
Which evaluation phase this policy applies to.
The “verification phase” is the period after the agent declares it is
done changing code (via tracevault verify-start) and is now running
pre-push checks. Policies scoped to that phase evaluate only tool calls
made inside it; policies scoped to Session evaluate the whole push.
Variants§
Session
Evaluated over the entire push (default).
VerificationPhase
Evaluated only against events inside the current verification phase.
Both
Evaluated in both contexts.
Trait Implementations§
Source§impl Clone for PolicyScope
impl Clone for PolicyScope
Source§fn clone(&self) -> PolicyScope
fn clone(&self) -> PolicyScope
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 moreSource§impl Debug for PolicyScope
impl Debug for PolicyScope
Source§impl Default for PolicyScope
impl Default for PolicyScope
Source§fn default() -> PolicyScope
fn default() -> PolicyScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyScope
impl<'de> Deserialize<'de> for PolicyScope
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
Source§impl PartialEq for PolicyScope
impl PartialEq for PolicyScope
Source§fn eq(&self, other: &PolicyScope) -> bool
fn eq(&self, other: &PolicyScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PolicyScope
impl Serialize for PolicyScope
impl StructuralPartialEq for PolicyScope
Auto Trait Implementations§
impl Freeze for PolicyScope
impl RefUnwindSafe for PolicyScope
impl Send for PolicyScope
impl Sync for PolicyScope
impl Unpin for PolicyScope
impl UnsafeUnpin for PolicyScope
impl UnwindSafe for PolicyScope
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