#[non_exhaustive]pub struct Assertion {
pub ordinal: NonZeroU64,
pub rule_id: RuleId,
pub status: AssertionStatus,
pub description: BoundedText,
pub location: ObjectLocation,
pub object_context: Option<BoundedText>,
pub message: Option<BoundedText>,
pub error_arguments: Vec<ErrorArgument>,
}Expand description
Rule assertion detail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ordinal: NonZeroU64Report-stable assertion ordinal.
rule_id: RuleIdRule id.
status: AssertionStatusAssertion status.
description: BoundedTextAssertion description.
location: ObjectLocationObject location.
object_context: Option<BoundedText>Optional object context path.
message: Option<BoundedText>Optional assertion message.
error_arguments: Vec<ErrorArgument>Error template arguments.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Assertion
impl<'de> Deserialize<'de> for Assertion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Assertion
impl StructuralPartialEq for Assertion
Auto Trait Implementations§
impl Freeze for Assertion
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnsafeUnpin for Assertion
impl UnwindSafe for Assertion
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