pub struct LSPRequest<'a, T> {
pub jsonrpc: &'static str,
pub id: RequestId,
pub method: &'a str,
pub params: T,
}
Expand description
Implemetation of LSP Request Message Request Message
jsonrpc
: jsonrpc version, see JSON_RPC_VERSIONid
: Request id, either integer or stringmethod
: Request methodparams
: Request params
Fields§
§jsonrpc: &'static str
§id: RequestId
§method: &'a str
§params: T
Trait Implementations§
Source§impl<'a, T: Clone> Clone for LSPRequest<'a, T>
impl<'a, T: Clone> Clone for LSPRequest<'a, T>
Source§fn clone(&self) -> LSPRequest<'a, T>
fn clone(&self) -> LSPRequest<'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 LSPRequest<'a, T>
impl<'a, T: Debug> Debug for LSPRequest<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for LSPRequest<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for LSPRequest<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for LSPRequest<'a, T>where
T: Send,
impl<'a, T> Sync for LSPRequest<'a, T>where
T: Sync,
impl<'a, T> Unpin for LSPRequest<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for LSPRequest<'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