pub enum FileChangeApprovalDecision {
Accept,
AcceptForSession,
Decline,
Cancel,
}Expand description
FileChangeApprovalDecision
JSON schema
{
"oneOf": [
{
"description": "User approved the file changes.",
"type": "string",
"enum": [
"accept"
]
},
{
"description": "User approved the file changes and future changes to the same files should run without prompting.",
"type": "string",
"enum": [
"acceptForSession"
]
},
{
"description": "User denied the file changes. The agent will continue the turn.",
"type": "string",
"enum": [
"decline"
]
},
{
"description": "User denied the file changes. The turn will also be immediately interrupted.",
"type": "string",
"enum": [
"cancel"
]
}
]
}Variants§
Accept
User approved the file changes.
AcceptForSession
User approved the file changes and future changes to the same files should run without prompting.
Decline
User denied the file changes. The agent will continue the turn.
Cancel
User denied the file changes. The turn will also be immediately interrupted.
Trait Implementations§
Source§impl Clone for FileChangeApprovalDecision
impl Clone for FileChangeApprovalDecision
Source§fn clone(&self) -> FileChangeApprovalDecision
fn clone(&self) -> FileChangeApprovalDecision
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 FileChangeApprovalDecision
impl Debug for FileChangeApprovalDecision
Source§impl<'de> Deserialize<'de> for FileChangeApprovalDecision
impl<'de> Deserialize<'de> for FileChangeApprovalDecision
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 Display for FileChangeApprovalDecision
impl Display for FileChangeApprovalDecision
Source§impl FromStr for FileChangeApprovalDecision
impl FromStr for FileChangeApprovalDecision
Source§impl Hash for FileChangeApprovalDecision
impl Hash for FileChangeApprovalDecision
Source§impl Ord for FileChangeApprovalDecision
impl Ord for FileChangeApprovalDecision
Source§fn cmp(&self, other: &FileChangeApprovalDecision) -> Ordering
fn cmp(&self, other: &FileChangeApprovalDecision) -> Ordering
1.21.0 (const: unstable) · 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 FileChangeApprovalDecision
impl PartialEq for FileChangeApprovalDecision
Source§fn eq(&self, other: &FileChangeApprovalDecision) -> bool
fn eq(&self, other: &FileChangeApprovalDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FileChangeApprovalDecision
impl PartialOrd for FileChangeApprovalDecision
Source§impl TryFrom<&String> for FileChangeApprovalDecision
impl TryFrom<&String> for FileChangeApprovalDecision
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for FileChangeApprovalDecision
impl TryFrom<&str> for FileChangeApprovalDecision
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for FileChangeApprovalDecision
impl TryFrom<String> for FileChangeApprovalDecision
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for FileChangeApprovalDecision
impl Eq for FileChangeApprovalDecision
impl StructuralPartialEq for FileChangeApprovalDecision
Auto Trait Implementations§
impl Freeze for FileChangeApprovalDecision
impl RefUnwindSafe for FileChangeApprovalDecision
impl Send for FileChangeApprovalDecision
impl Sync for FileChangeApprovalDecision
impl Unpin for FileChangeApprovalDecision
impl UnsafeUnpin for FileChangeApprovalDecision
impl UnwindSafe for FileChangeApprovalDecision
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.