pub enum TaskLaunchKind {
Plain,
Approved(ApprovalRequest),
}Expand description
How a task should be invoked. Mutually exclusive between plain execution and resuming after approval.
Variants§
Plain
Execute the tool with the active permission policy.
Approved(ApprovalRequest)
Re-execute a previously-interrupted call after the user approved it.
Trait Implementations§
Source§impl Clone for TaskLaunchKind
impl Clone for TaskLaunchKind
Source§fn clone(&self) -> TaskLaunchKind
fn clone(&self) -> TaskLaunchKind
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 TaskLaunchKind
impl Debug for TaskLaunchKind
Source§impl Default for TaskLaunchKind
impl Default for TaskLaunchKind
Source§fn default() -> TaskLaunchKind
fn default() -> TaskLaunchKind
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskLaunchKind
impl RefUnwindSafe for TaskLaunchKind
impl Send for TaskLaunchKind
impl Sync for TaskLaunchKind
impl Unpin for TaskLaunchKind
impl UnsafeUnpin for TaskLaunchKind
impl UnwindSafe for TaskLaunchKind
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