pub struct Presentation {
pub request: Request,
pub title: String,
pub subject: 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.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.