Struct lsp_types::PublishDiagnosticsParams [−][src]
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
pub fn new(
uri: Url,
diagnostics: Vec<Diagnostic>,
version: Option<i32>
) -> PublishDiagnosticsParams
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PublishDiagnosticsParams
impl Send for PublishDiagnosticsParams
impl Sync for PublishDiagnosticsParams
impl Unpin for PublishDiagnosticsParams
impl UnwindSafe for PublishDiagnosticsParams
Blanket Implementations
Mutably borrows from an owned value. Read more