pub enum AutonomyLevel {
SuggestOnly = 0,
ConfirmDestructive = 1,
SemiAutonomous = 2,
FullAutonomous = 3,
}Expand description
Global autonomy level
Variants§
SuggestOnly = 0
Only suggest actions, never execute
ConfirmDestructive = 1
Confirm destructive operations only
SemiAutonomous = 2
Semi-autonomous: confirm risky operations
FullAutonomous = 3
Fully autonomous: minimal confirmation
Implementations§
Source§impl AutonomyLevel
impl AutonomyLevel
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get description
Sourcepub fn allows_auto_execute(&self, risk: RiskLevel) -> bool
pub fn allows_auto_execute(&self, risk: RiskLevel) -> bool
Check if this level allows automatic execution for a risk level
Trait Implementations§
Source§impl Clone for AutonomyLevel
impl Clone for AutonomyLevel
Source§fn clone(&self) -> AutonomyLevel
fn clone(&self) -> AutonomyLevel
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 AutonomyLevel
impl Debug for AutonomyLevel
Source§impl Default for AutonomyLevel
impl Default for AutonomyLevel
Source§fn default() -> AutonomyLevel
fn default() -> AutonomyLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutonomyLevel
impl<'de> Deserialize<'de> for AutonomyLevel
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 Hash for AutonomyLevel
impl Hash for AutonomyLevel
Source§impl Ord for AutonomyLevel
impl Ord for AutonomyLevel
Source§fn cmp(&self, other: &AutonomyLevel) -> Ordering
fn cmp(&self, other: &AutonomyLevel) -> 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 AutonomyLevel
impl PartialEq for AutonomyLevel
Source§impl PartialOrd for AutonomyLevel
impl PartialOrd for AutonomyLevel
Source§impl Serialize for AutonomyLevel
impl Serialize for AutonomyLevel
impl Copy for AutonomyLevel
impl Eq for AutonomyLevel
impl StructuralPartialEq for AutonomyLevel
Auto Trait Implementations§
impl Freeze for AutonomyLevel
impl RefUnwindSafe for AutonomyLevel
impl Send for AutonomyLevel
impl Sync for AutonomyLevel
impl Unpin for AutonomyLevel
impl UnsafeUnpin for AutonomyLevel
impl UnwindSafe for AutonomyLevel
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> Comparable<K> for Q
impl<Q, K> Comparable<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.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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request