Struct lsp_types::PublishDiagnosticsParams
source · pub struct PublishDiagnosticsParams {
pub uri: Url,
pub diagnostics: Vec<Diagnostic>,
pub version: Option<i32>,
}
Fields§
§uri: Url
The URI for which diagnostic information is reported.
diagnostics: Vec<Diagnostic>
An array of diagnostic information items.
version: Option<i32>
Optional the version number of the document the diagnostics are published for.
Implementations§
source§impl PublishDiagnosticsParams
impl PublishDiagnosticsParams
pub fn new(
uri: Url,
diagnostics: Vec<Diagnostic>,
version: Option<i32>
) -> PublishDiagnosticsParams
Trait Implementations§
source§impl Clone for PublishDiagnosticsParams
impl Clone for PublishDiagnosticsParams
source§fn clone(&self) -> PublishDiagnosticsParams
fn clone(&self) -> PublishDiagnosticsParams
Returns a copy 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 Debug for PublishDiagnosticsParams
impl Debug for PublishDiagnosticsParams
source§impl<'de> Deserialize<'de> for PublishDiagnosticsParams
impl<'de> Deserialize<'de> for PublishDiagnosticsParams
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<PublishDiagnosticsParams> for PublishDiagnosticsParams
impl PartialEq<PublishDiagnosticsParams> for PublishDiagnosticsParams
source§fn eq(&self, other: &PublishDiagnosticsParams) -> bool
fn eq(&self, other: &PublishDiagnosticsParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.