Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-dap/src/transport.rs')
| -rw-r--r-- | helix-dap/src/transport.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/helix-dap/src/transport.rs b/helix-dap/src/transport.rs index 0f646b6a..1b1fca5f 100644 --- a/helix-dap/src/transport.rs +++ b/helix-dap/src/transport.rs @@ -1,4 +1,4 @@ -use crate::{Error, Event, Result}; +use crate::{Error, Result}; use anyhow::Context; use log::{error, info, warn}; use serde::{Deserialize, Serialize}; @@ -32,11 +32,17 @@ pub struct Response { pub body: Option<Value>, } +#[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] +pub struct Event { + pub event: String, + pub body: Option<Value>, +} + #[derive(Debug, Clone, Deserialize, Serialize)] #[serde(tag = "type", rename_all = "camelCase")] pub enum Payload { // type = "event" - Event(Box<Event>), + Event(Event), // type = "response" Response(Response), // type = "request" |