pub struct Message<'a> {
pub type: AnnotationType,
pub title: Cow<'a, str>,
pub annotations: Vec<Annotation<'a>>,
pub footers: Vec<Footer<'a>>,
}👎Deprecated since 0.16.0: Use
Report insteadExpand description
Entire diagnostic message
Fields§
§type: AnnotationType👎Deprecated since 0.16.0: Use
Report insteadType of this message
title: Cow<'a, str>👎Deprecated since 0.16.0: Use
Report insteadString that communicates the most important information in this message
annotations: Vec<Annotation<'a>>👎Deprecated since 0.16.0: Use
Report insteadReferences to source code fragments annotated with additional information
👎Deprecated since 0.16.0: Use
Report insteadAdditional text without associated source code
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> !RefUnwindSafe for Message<'a>
impl<'a> !Send for Message<'a>
impl<'a> !Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> !UnwindSafe for Message<'a>
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more