pub struct LspResponse {
pub jsonrpc: String,
pub id: RequestId,
pub result: Option<Value>,
pub error: Option<LspResponseError>,
}Expand description
LSP response message.
Fields§
§jsonrpc: String§id: RequestId§result: Option<Value>§error: Option<LspResponseError>Implementations§
Trait Implementations§
Source§impl Clone for LspResponse
impl Clone for LspResponse
Source§fn clone(&self) -> LspResponse
fn clone(&self) -> LspResponse
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 LspResponse
impl Debug for LspResponse
Source§impl<'de> Deserialize<'de> for LspResponse
impl<'de> Deserialize<'de> for LspResponse
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 LspResponse
impl RefUnwindSafe for LspResponse
impl Send for LspResponse
impl Sync for LspResponse
impl Unpin for LspResponse
impl UnwindSafe for LspResponse
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