Parent: #233 · Blocked by: #235
Scope
Add Attachment struct to trapfall-proto/src/lib.rs and extend ParsedEnvelope.
Struct to Add
pub struct Attachment {
pub filename: String,
pub content_type: Option<String>, // "image/png"
pub attachment_type: Option<String>, // "event.attachment" (default)
pub data: Vec<u8>, // raw binary bytes
}
Extend ParsedEnvelope
pub struct ParsedEnvelope {
pub events: Vec<Event>,
pub transactions: Vec<Transaction>,
pub session_updates: Vec<SessionUpdate>,
pub session_aggregates: Vec<SessionAggregates>,
pub attachments: Vec<Attachment>, // NEW
}
Tasks
Effort: ~30 minutes
Parent: #233 · Blocked by: #235
Scope
Add
Attachmentstruct totrapfall-proto/src/lib.rsand extendParsedEnvelope.Struct to Add
Extend
ParsedEnvelopeTasks
AttachmentstructParsedEnvelopewithattachmentsfieldAttachmentdoes NOT deriveSerialize/Deserializefor thedatafield via serde_json — handle serialization separately (base64 for storage)Effort: ~30 minutes