[][src]Struct lark_language_server::JsonRPCNotification

pub struct JsonRPCNotification<T> {
    pub method: String,
    pub params: T,
    // some fields omitted
}

A wrapper for proactive notifications to the IDE (eg. diagnostics). These must follow the JSON 2.0 RPC spec

Fields

method: Stringparams: T

Methods

impl<T> JsonRPCNotification<T>
[src]

pub fn new(method: String, params: T) -> Self
[src]

Trait Implementations

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

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

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

Auto Trait Implementations

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

impl<T> Sync for JsonRPCNotification<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]