Struct distant_core::LspHeader
source · 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
source§impl PartialEq<LspHeader> for LspHeader
impl PartialEq<LspHeader> for LspHeader
impl Eq for LspHeader
impl StructuralEq for LspHeader
impl StructuralPartialEq for LspHeader
Auto Trait Implementations§
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