pub struct Diagnostic {
pub level: DiagnosticLevel,
pub code: String,
pub message: String,
pub file_path: PathBuf,
pub line: usize,
pub column: usize,
pub length: usize,
pub suggestion: Option<String>,
pub help: Option<String>,
}
Expand description
診断情報
Fields§
§level: DiagnosticLevel
診断レベル
code: String
診断コード
message: String
メッセージ
file_path: PathBuf
ファイルパス
line: usize
行番号(1-based)
column: usize
列番号(1-based)
length: usize
行の長さ
suggestion: Option<String>
修正提案(オプション)
help: Option<String>
追加のヘルプ情報
Implementations§
Source§impl Diagnostic
impl Diagnostic
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§fn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
Returns a duplicate 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 Diagnostic
impl Debug for Diagnostic
Source§impl<'de> Deserialize<'de> for Diagnostic
impl<'de> Deserialize<'de> for Diagnostic
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
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin 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