pub enum AttachmentData {
Show 25 variants
HookSuccess(HookResultAttachment),
HookNonBlockingError(HookResultAttachment),
HookBlockingError(HookResultAttachment),
HookCancelled(HookResultAttachment),
HookAdditionalContext {
content: Vec<String>,
hook_name: Option<String>,
tool_use_id: Option<String>,
hook_event: Option<String>,
},
HookPermissionDecision {
decision: String,
hook_name: Option<String>,
tool_use_id: Option<String>,
hook_event: Option<String>,
},
File {
filename: String,
content: FileAttachmentContent,
display_path: Option<String>,
},
EditedTextFile {
filename: String,
snippet: String,
},
Directory {
path: String,
content: String,
display_path: String,
},
CompactFileReference {
filename: String,
display_path: String,
},
CommandPermissions {
allowed_tools: Vec<String>,
},
PlanMode {
reminder_type: String,
is_sub_agent: bool,
plan_file_path: Option<String>,
plan_exists: bool,
},
PlanModeExit {
plan_file_path: Option<String>,
plan_exists: bool,
},
SkillListing {
content: String,
is_initial: Option<bool>,
skill_count: Option<u32>,
},
DynamicSkill {
skill_dir: String,
skill_names: Vec<String>,
display_path: String,
},
InvokedSkills {
skills: Vec<InvokedSkill>,
},
TaskReminder {
content: Vec<Value>,
item_count: u32,
},
Diagnostics {
files: Vec<DiagnosticsFile>,
is_new: bool,
},
DateChange {
new_date: String,
},
DeferredToolsDelta {
added_names: Vec<String>,
added_lines: Option<Vec<String>>,
removed_names: Option<Vec<String>>,
},
McpInstructionsDelta {
added_names: Vec<String>,
added_blocks: Vec<String>,
removed_names: Option<Vec<String>>,
},
UltrathinkEffort {
level: String,
},
QueuedCommand {
prompt: String,
command_mode: Option<String>,
},
NestedMemory {
path: String,
content: NestedMemoryContent,
display_path: String,
},
Unknown,
}Variants§
HookSuccess(HookResultAttachment)
HookNonBlockingError(HookResultAttachment)
HookBlockingError(HookResultAttachment)
HookCancelled(HookResultAttachment)
HookAdditionalContext
Fields
HookPermissionDecision
Fields
File
EditedTextFile
Directory
CompactFileReference
CommandPermissions
PlanMode
PlanModeExit
SkillListing
Fields
DynamicSkill
InvokedSkills
Fields
§
skills: Vec<InvokedSkill>TaskReminder
Diagnostics
DateChange
DeferredToolsDelta
Fields
McpInstructionsDelta
UltrathinkEffort
QueuedCommand
NestedMemory
Unknown
Catch-all for attachment types not yet recognised by the ingest binary.
Trait Implementations§
Source§impl Clone for AttachmentData
impl Clone for AttachmentData
Source§fn clone(&self) -> AttachmentData
fn clone(&self) -> AttachmentData
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 AttachmentData
impl Debug for AttachmentData
Source§impl<'de> Deserialize<'de> for AttachmentData
impl<'de> Deserialize<'de> for AttachmentData
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
Auto Trait Implementations§
impl Freeze for AttachmentData
impl RefUnwindSafe for AttachmentData
impl Send for AttachmentData
impl Sync for AttachmentData
impl Unpin for AttachmentData
impl UnsafeUnpin for AttachmentData
impl UnwindSafe for AttachmentData
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