pub enum TrustLevel {
System,
RepoPolicy,
RepoCode,
UserTask,
ToolOutput,
ExternalText,
}Expand description
The trust classification attached to inputs and observations.
Variants§
System
Built-in platform guidance.
RepoPolicy
Repository policy files.
RepoCode
Source code and manifests from the workspace.
UserTask
The direct user request for the active task.
ToolOutput
Tool output captured during execution.
ExternalText
External text such as issue descriptions or web pages.
Implementations§
Source§impl TrustLevel
impl TrustLevel
Sourcepub fn can_define_policy(self) -> bool
pub fn can_define_policy(self) -> bool
Returns whether this trust level is allowed to define or widen policy.
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 TrustLevel
impl Debug for TrustLevel
Source§impl<'de> Deserialize<'de> for TrustLevel
impl<'de> Deserialize<'de> for TrustLevel
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 Ord for TrustLevel
impl Ord for TrustLevel
Source§fn cmp(&self, other: &TrustLevel) -> Ordering
fn cmp(&self, other: &TrustLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrustLevel
impl PartialEq for TrustLevel
Source§impl PartialOrd for TrustLevel
impl PartialOrd for TrustLevel
Source§impl Serialize for TrustLevel
impl Serialize for TrustLevel
impl Copy for TrustLevel
impl Eq for TrustLevel
impl StructuralPartialEq for TrustLevel
Auto Trait Implementations§
impl Freeze for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnsafeUnpin for TrustLevel
impl UnwindSafe for TrustLevel
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