pub struct IssueDisplay<'a> {
pub severity: Severity,
pub category: ValidationCategory,
pub code: &'static str,
pub text: String,
pub location: Option<String>,
pub segment_position: Option<SegmentPosition>,
pub rule: Option<&'a str>,
pub actual_value: Option<&'a str>,
pub expected_value: Option<&'a str>,
}Expand description
One issue resolved into a chosen view and wording.
Fields§
§severity: Severity§category: ValidationCategory§code: &'static str§text: StringNarrated text, with the location already placed.
location: Option<String>The location in this view, for rendering on its own line.
segment_position: Option<SegmentPosition>§rule: Option<&'a str>§actual_value: Option<&'a str>§expected_value: Option<&'a str>Implementations§
Source§impl<'a> IssueDisplay<'a>
impl<'a> IssueDisplay<'a>
Sourcepub fn new(
issue: &'a ValidationIssue,
view: &dyn IssueView,
narrator: &dyn IssueNarrator,
) -> Self
pub fn new( issue: &'a ValidationIssue, view: &dyn IssueView, narrator: &dyn IssueNarrator, ) -> Self
Resolve one issue through a view and a narrator.
Trait Implementations§
Source§impl<'a> Clone for IssueDisplay<'a>
impl<'a> Clone for IssueDisplay<'a>
Auto Trait Implementations§
impl<'a> Freeze for IssueDisplay<'a>
impl<'a> RefUnwindSafe for IssueDisplay<'a>
impl<'a> Send for IssueDisplay<'a>
impl<'a> Sync for IssueDisplay<'a>
impl<'a> Unpin for IssueDisplay<'a>
impl<'a> UnsafeUnpin for IssueDisplay<'a>
impl<'a> UnwindSafe for IssueDisplay<'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