pub struct InlinePermission {
pub options: Vec<PermissionOption>,
pub response_tx: Sender<RequestPermissionResponse>,
pub selected_index: usize,
pub focused: bool,
}Expand description
Permission state stored inline on a ToolCallInfo, so the permission
controls render inside the tool call block (unified edit/permission UX).
Fields§
§options: Vec<PermissionOption>§response_tx: Sender<RequestPermissionResponse>§selected_index: usize§focused: boolWhether this permission currently has keyboard focus. When multiple permissions are pending, only the focused one shows the selection arrow and accepts Left/Right/Enter input.
Auto Trait Implementations§
impl Freeze for InlinePermission
impl !RefUnwindSafe for InlinePermission
impl Send for InlinePermission
impl Sync for InlinePermission
impl Unpin for InlinePermission
impl UnsafeUnpin for InlinePermission
impl !UnwindSafe for InlinePermission
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> 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 more