pub struct Presentation {Show 14 fields
pub request: Request,
pub title: String,
pub subject: String,
pub object: Vec<String>,
pub sources: Vec<String>,
pub notice: Option<String>,
pub body: Vec<String>,
pub full: Vec<String>,
pub sandbox: String,
pub options: Vec<Choice>,
pub scope: String,
pub old_text: Option<String>,
pub new_text: Option<String>,
pub file: Option<String>,
}Expand description
The call as a person sees it.
Fields§
§request: RequestThe question.
title: StringWrite this file?, Edit this file?, Run this command?,
Use the network?, Call MCP tool?.
subject: StringThe path, the whole command, or the MCP tool — never cut.
object: Vec<String>The object a decision covers, as lines: the file (and the name as asked when it differs), the argv with its hash and the executable, the tool with its digest; and what changed since an approval of the same name, when something did.
sources: Vec<String>Where arguments of the call were copied from: contains text read from README.md (turn 3): "…", then and N more.
notice: Option<String>Said once, on the prompt that uses the run’s asking budget.
body: Vec<String>The body as shown: a diff, a file’s head, the command, arguments.
full: Vec<String>The whole body (v).
sandbox: StringWhat the call can reach.
options: Vec<Choice>The choices, in order.
scope: StringWhat an approval for the task or run covers (this path, any content).
old_text: Option<String>The file’s text before and after, for editors that show a diff.
new_text: Option<String>The file’s text after the call.
file: Option<String>The file’s absolute path, for a write or edit in a known worktree.
Trait Implementations§
Source§impl Clone for Presentation
impl Clone for Presentation
Source§impl Debug for Presentation
impl Debug for Presentation
Source§impl<'de> Deserialize<'de> for Presentation
impl<'de> Deserialize<'de> for Presentation
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>,
impl Eq for Presentation
Source§impl PartialEq for Presentation
impl PartialEq for Presentation
Source§impl Serialize for Presentation
impl Serialize for Presentation
impl StructuralPartialEq for Presentation
Auto Trait Implementations§
impl Freeze for Presentation
impl RefUnwindSafe for Presentation
impl Send for Presentation
impl Sync for Presentation
impl Unpin for Presentation
impl UnsafeUnpin for Presentation
impl UnwindSafe for Presentation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
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