pub struct MarkerDataDTO {
pub Severity: u32,
pub Message: String,
pub StartLineNumber: u32,
pub StartColumn: u32,
pub EndLineNumber: u32,
pub EndColumn: u32,
pub Source: Option<String>,
pub Code: Option<Value>,
pub ModelVersionIdentifier: Option<u64>,
pub RelatedInformation: Option<Value>,
pub Tags: Option<Vec<u32>>,
}Expand description
Represents a single diagnostic marker, such as a compiler error or a linter
warning. This structure is compatible with VS Code’s IMarkerData
interface and is used by the Diagnostic service.
Fields§
§Severity: u32Severity level of the marker
Message: StringHuman-readable diagnostic message
StartLineNumber: u32Start line number (0-based)
StartColumn: u32Start column number (0-based)
EndLineNumber: u32End line number (0-based)
EndColumn: u32End column number (0-based)
Source: Option<String>Diagnostic source (e.g., “typescript”, “rustc”)
Code: Option<Value>Diagnostic code for quick fix lookup (string or object)
ModelVersionIdentifier: Option<u64>Document version marker is associated with
RelatedInformation: Option<Value>Related diagnostic information
Tags: Option<Vec<u32>>Additional marker tags (deprecated, unnecessary)
Implementations§
Source§impl MarkerDataDTO
impl MarkerDataDTO
Sourcepub fn New(
Severity: u32,
Message: String,
StartLineNumber: u32,
StartColumn: u32,
EndLineNumber: u32,
EndColumn: u32,
) -> Result<Self, String>
pub fn New( Severity: u32, Message: String, StartLineNumber: u32, StartColumn: u32, EndLineNumber: u32, EndColumn: u32, ) -> Result<Self, String>
Creates a new MarkerDataDTO with validation.
§Arguments
Severity- Marker severity levelMessage- Diagnostic messageStartLineNumber- Start line (0-based)StartColumn- Start column (0-based)EndLineNumber- End line (0-based)EndColumn- End column (0-based)
§Returns
Result containing the DTO or validation error
Sourcepub fn ValidatePosition(&self) -> Result<(), String>
pub fn ValidatePosition(&self) -> Result<(), String>
Validates the marker’s position data.
§Returns
Result indicating valid position or error with reason
Sourcepub fn GetSeverity(&self) -> Option<MarkerSeverity>
pub fn GetSeverity(&self) -> Option<MarkerSeverity>
Gets the severity as a MarkerSeverity enum if valid.
§Returns
Option containing MarkerSeverity or None if invalid
Trait Implementations§
Source§impl Clone for MarkerDataDTO
impl Clone for MarkerDataDTO
Source§fn clone(&self) -> MarkerDataDTO
fn clone(&self) -> MarkerDataDTO
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MarkerDataDTO
impl Debug for MarkerDataDTO
Source§impl Default for MarkerDataDTO
impl Default for MarkerDataDTO
Source§fn default() -> MarkerDataDTO
fn default() -> MarkerDataDTO
Source§impl<'de> Deserialize<'de> for MarkerDataDTO
impl<'de> Deserialize<'de> for MarkerDataDTO
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>,
Auto Trait Implementations§
impl Freeze for MarkerDataDTO
impl RefUnwindSafe for MarkerDataDTO
impl Send for MarkerDataDTO
impl Sync for MarkerDataDTO
impl Unpin for MarkerDataDTO
impl UnsafeUnpin for MarkerDataDTO
impl UnwindSafe for MarkerDataDTO
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].