Struct umm::grade::JavacDiagnostic
source · pub struct JavacDiagnostic {
path: String,
file_name: String,
line_number: u32,
is_error: bool,
message: String,
}
Expand description
A struct representing a javac diagnostic message
Fields§
§path: String
path
: path to the file diagnostic is referring to
file_name: String
file_name
: name of the file the diagnostic is about
line_number: u32
line_number
: line number
is_error: bool
is_error
: boolean value, is true if error or false if the diagnostic is a warning
message: String
message
: the diagnostic message
Implementations§
source§impl JavacDiagnostic
impl JavacDiagnostic
sourcepub fn builder() -> JavacDiagnosticBuilder<((), (), (), (), ())>
pub fn builder() -> JavacDiagnosticBuilder<((), (), (), (), ())>
Create a builder for building JavacDiagnostic
.
On the builder, call .path(...)
, .file_name(...)
, .line_number(...)
, .is_error(...)
, .message(...)
to set the values of the fields.
Finally, call .build()
to create the instance of JavacDiagnostic
.
Trait Implementations§
source§impl Clone for JavacDiagnostic
impl Clone for JavacDiagnostic
source§fn clone(&self) -> JavacDiagnostic
fn clone(&self) -> JavacDiagnostic
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 JavacDiagnostic
impl Debug for JavacDiagnostic
source§impl<'de> Deserialize<'de> for JavacDiagnostic
impl<'de> Deserialize<'de> for JavacDiagnostic
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 From<JavacDiagnostic> for LineRef
impl From<JavacDiagnostic> for LineRef
source§fn from(val: JavacDiagnostic) -> Self
fn from(val: JavacDiagnostic) -> Self
Converts a JavacDiagnostic to a LineRef
source§impl Serialize for JavacDiagnostic
impl Serialize for JavacDiagnostic
source§impl Tabled for JavacDiagnostic
impl Tabled for JavacDiagnostic
Auto Trait Implementations§
impl RefUnwindSafe for JavacDiagnostic
impl Send for JavacDiagnostic
impl Sync for JavacDiagnostic
impl Unpin for JavacDiagnostic
impl UnwindSafe for JavacDiagnostic
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