pub struct Property {
pub id: String,
pub role: Option<String>,
pub scheme: Option<String>,
pub message: Vec<MessagePart>,
}Expand description
A <property id="..." role="..." scheme="..."> — a <properties>
child, generic key/value-ish metadata (ISO Schematron 2016 extension,
issue #5). message uses the same rich-content model as a check’s own
message. Note: unlike Diagnostic, this crate does not (yet) model
assert|report/@properties (the parallel IDREFS attribute the ISO
grammar allows on checks, mirroring @diagnostics) — out of scope for
issue #5, which only covers the top-level <properties> construct
itself; that attribute is silently unread, same as several other
assert/report attributes (flag, subject, …) this crate
doesn’t model.
Fields§
§id: String§role: Option<String>§scheme: Option<String>§message: Vec<MessagePart>Trait Implementations§
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
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