pub struct Response {
pub seq: i64,
pub msg_type: String,
pub request_seq: i64,
pub success: bool,
pub command: String,
pub message: Option<String>,
pub body: Option<Value>,
}Expand description
Base response message
All DAP responses follow this structure with command-specific body.
Fields§
§seq: i64Sequence number
msg_type: StringMessage type (always “response”)
request_seq: i64Sequence number of corresponding request
success: boolWhether the request succeeded
command: StringCommand name
message: Option<String>Error message (if success=false)
body: Option<Value>Command-specific response body
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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