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§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.