pub enum MessagePart {
Text(String),
ValueOf(String),
}Expand description
One piece of a Check’s message content, in document order.
The ISO Schematron content model for assert/report also allows
name/emph/dir/span markup (and arbitrary foreign-namespace
elements) — only <value-of select="..."> is evaluated (Stage 2, see
plan/06-value-of-interpolation.md); text nested inside the other,
unsupported wrapper elements still contributes via Text (the wrapper
tag itself carries no meaning here, same as Stage 1’s plain-text
handling), but those elements’ own semantics (e.g. <name/> resolving
to the context node’s name) are not implemented.
Variants§
Text(String)
ValueOf(String)
A <value-of select="..."> — select is the raw, unparsed XPath
expression, evaluated against the firing check’s context node.
Trait Implementations§
Source§impl Clone for MessagePart
impl Clone for MessagePart
Source§fn clone(&self) -> MessagePart
fn clone(&self) -> MessagePart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessagePart
impl Debug for MessagePart
impl Eq for MessagePart
Source§impl PartialEq for MessagePart
impl PartialEq for MessagePart
impl StructuralPartialEq for MessagePart
Auto Trait Implementations§
impl Freeze for MessagePart
impl RefUnwindSafe for MessagePart
impl Send for MessagePart
impl Sync for MessagePart
impl Unpin for MessagePart
impl UnsafeUnpin for MessagePart
impl UnwindSafe for MessagePart
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