pub struct LspHeader {
pub content_length: usize,
pub content_type: Option<String>,
}
Expand description
Represents the header for LSP data
Fields§
§content_length: usize
Length of content part in bytes
content_type: Option<String>
Mime type of content part, defaulting to application/vscode-jsonrpc; charset=utf-8
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LspHeader
impl<'de> Deserialize<'de> for LspHeader
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
impl Eq for LspHeader
impl StructuralPartialEq for LspHeader
Auto Trait Implementations§
impl Freeze for LspHeader
impl RefUnwindSafe for LspHeader
impl Send for LspHeader
impl Sync for LspHeader
impl Unpin for LspHeader
impl UnwindSafe for LspHeader
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