pub struct Response {
pub id: RequestId,
pub result: Option<Value>,
pub error: Option<ResponseError>,
}
Expand description
A response in the Language Server Protocol.
Fields§
§id: RequestId
JSON RPC allows this to be null if it was impossible to decode the request’s id. Ignore this special case and just die horribly.
result: Option<Value>
The result of the LSP request from the language server. It is not null if executed successfully, and it is null if an error occurs.
error: Option<ResponseError>
The error of the LSP request from the language server. It is null if executed successfully, and it is not null if an error occurs.
Implementations§
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 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