pub struct LSPResponse<'a, T> {
pub jsonrpc: &'a str,
pub id: RequestId,
pub value: LSPResult<T>,
}Expand description
Implementation of LSPResponse message Response Message The response message required that result and error field can’t be present on one message
jsonrpc: jsonrpc version, see JSON_RPC_VERSIONid: Request Id, see RequestIdvalue: See LSPResult
Fields§
§jsonrpc: &'a str§id: RequestId§value: LSPResult<T>Trait Implementations§
Source§impl<'a, T: Clone> Clone for LSPResponse<'a, T>
impl<'a, T: Clone> Clone for LSPResponse<'a, T>
Source§fn clone(&self) -> LSPResponse<'a, T>
fn clone(&self) -> LSPResponse<'a, T>
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<'a, T: Debug> Debug for LSPResponse<'a, T>
impl<'a, T: Debug> Debug for LSPResponse<'a, T>
Source§impl<'de: 'a, 'a, T> Deserialize<'de> for LSPResponse<'a, T>where
T: Deserialize<'de>,
impl<'de: 'a, 'a, T> Deserialize<'de> for LSPResponse<'a, T>where
T: Deserialize<'de>,
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<'a, T> Freeze for LSPResponse<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for LSPResponse<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for LSPResponse<'a, T>where
T: Send,
impl<'a, T> Sync for LSPResponse<'a, T>where
T: Sync,
impl<'a, T> Unpin for LSPResponse<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for LSPResponse<'a, T>where
T: UnwindSafe,
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