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 for PublishDiagnosticsParams
impl PartialEq 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 ==
.source§impl Serialize for PublishDiagnosticsParams
impl Serialize for PublishDiagnosticsParams
impl Eq for PublishDiagnosticsParams
impl StructuralPartialEq for PublishDiagnosticsParams
Auto Trait Implementations§
impl Freeze for PublishDiagnosticsParams
impl RefUnwindSafe for PublishDiagnosticsParams
impl Send for PublishDiagnosticsParams
impl Sync for PublishDiagnosticsParams
impl Unpin for PublishDiagnosticsParams
impl UnwindSafe for PublishDiagnosticsParams
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