pub struct Diagnostic {
pub paragraph: usize,
pub start: usize,
pub end: usize,
pub message: String,
pub fixes: Vec<Fix>,
pub severity: Severity,
}Expand description
An issue in one paragraph, from start to end as UTF-8 byte offsets into it.
Fields§
§paragraph: usizeIts index in Request::paragraphs.
start: usize§end: usize§message: String§fixes: Vec<Fix>Offered to the user.
severity: SeverityTrait Implementations§
Auto Trait Implementations§
impl Forget for Diagnostic
impl Freeze for Diagnostic
impl Move for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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