pub struct Check {
pub kind: CheckKind,
pub test: String,
pub id: Option<String>,
pub role: Option<String>,
pub message: Vec<MessagePart>,
pub diagnostics: Vec<String>,
}Expand description
An <assert> or <report> element. test is the raw, unparsed XPath
expression. message is the element’s rich content, rendered to a
final string only when the check fires — see
crate::engine::evaluate and plan/06-value-of-interpolation.md.
Fields§
§kind: CheckKind§test: String§id: Option<String>§role: Option<String>§message: Vec<MessagePart>§diagnostics: Vec<String>The diagnostics="id1 id2" IDREFS list, raw (not cross-checked
against Schema.diagnostics here — see plan/08-diagnostics.md,
same accepted simplification as Phase.active).
Trait Implementations§
impl Eq for Check
impl StructuralPartialEq for Check
Auto Trait Implementations§
impl Freeze for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnsafeUnpin for Check
impl UnwindSafe for Check
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