[][src]Struct lark_language_server::JsonRPCResponse

pub struct JsonRPCResponse<T> {
    pub id: usize,
    pub result: T,
    // some fields omitted
}

A wrapper for responses back to the IDE from the LSP service. These must follow the JSON 2.0 RPC spec

Fields

id: usizeresult: T

Methods

impl<T> JsonRPCResponse<T>
[src]

pub fn new(id: usize, result: T) -> Self
[src]

Trait Implementations

impl<T: Debug> Debug for JsonRPCResponse<T>
[src]

impl<T> Serialize for JsonRPCResponse<T> where
    T: Serialize
[src]

impl<'de, T> Deserialize<'de> for JsonRPCResponse<T> where
    T: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<T> Send for JsonRPCResponse<T> where
    T: Send

impl<T> Sync for JsonRPCResponse<T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]