pub enum IntentKind {
FileWrite {
uri: String,
},
ShellExec {
command: String,
},
LspCall {
method: String,
},
AdmissionPromotion {
method: String,
},
GitPush {
branch: String,
},
ReceiptGeneration {
receipt_id: String,
},
Custom {
kind: String,
payload: Value,
},
}Expand description
Declared action categories for intent pre-flight.
Variants§
FileWrite
Agent intends to write/mutate a file
ShellExec
Agent intends to run a shell command
LspCall
Agent intends to call an LSP method
AdmissionPromotion
Agent intends to promote a CANDIDATE to ADMITTED
GitPush
Agent intends to push to git remote
ReceiptGeneration
Agent intends to create a receipt artifact
Custom
Custom intent for extension methods
Implementations§
Trait Implementations§
Source§impl Clone for IntentKind
impl Clone for IntentKind
Source§fn clone(&self) -> IntentKind
fn clone(&self) -> IntentKind
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 IntentKind
impl Debug for IntentKind
Source§impl<'de> Deserialize<'de> for IntentKind
impl<'de> Deserialize<'de> for IntentKind
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
impl Eq for IntentKind
Source§impl PartialEq for IntentKind
impl PartialEq for IntentKind
Source§fn eq(&self, other: &IntentKind) -> bool
fn eq(&self, other: &IntentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntentKind
impl Serialize for IntentKind
impl StructuralPartialEq for IntentKind
Auto Trait Implementations§
impl Freeze for IntentKind
impl RefUnwindSafe for IntentKind
impl Send for IntentKind
impl Sync for IntentKind
impl Unpin for IntentKind
impl UnsafeUnpin for IntentKind
impl UnwindSafe for IntentKind
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.