pub struct PendingPermission {
pub request_id: String,
pub agent: String,
pub agent_id: String,
pub tool: String,
pub subject: String,
pub rule: String,
}Expand description
The permission request currently blocking the turn (#3422).
Why: crate::event::ReplEvent::PermissionRequested’s payload has to
outlive the event so the prompt widget can redraw it every frame and the
answer can be addressed back to the right request_id. Held in
crate::app::ReplApp::pending_permission.
What: every field is the producer’s own text, stored verbatim — subject
arrives already redacted and bounded, and this crate never re-derives,
re-redacts, or re-interprets any of them.
Test: crate::app::reduce::tests::permission_requested_opens_a_prompt_and_records_it.
Fields§
§request_id: StringThe correlation key the answer is sent back on.
agent: StringThe agent whose call is suspended.
agent_id: StringThat agent’s opaque per-spawn id; empty when unattributed.
tool: StringThe tool that would run.
subject: StringWhat the tool would act on, already redacted by the producer.
rule: StringThe policy pattern that matched.
Trait Implementations§
Source§impl Clone for PendingPermission
impl Clone for PendingPermission
Source§impl Debug for PendingPermission
impl Debug for PendingPermission
impl Eq for PendingPermission
Source§impl PartialEq for PendingPermission
impl PartialEq for PendingPermission
impl StructuralPartialEq for PendingPermission
Auto Trait Implementations§
impl Freeze for PendingPermission
impl RefUnwindSafe for PendingPermission
impl Send for PendingPermission
impl Sync for PendingPermission
impl Unpin for PendingPermission
impl UnsafeUnpin for PendingPermission
impl UnwindSafe for PendingPermission
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.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> ⓘ
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> ⓘ
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