pub struct Clause {
pub id: ClauseId,
pub keyword: Keyword,
pub severity: Severity,
pub text: String,
pub condition: Option<String>,
pub otherwise: Vec<Clause>,
pub temporal: Option<Temporal>,
pub hints: Vec<String>,
pub source_location: SourceLocation,
pub content_hash: String,
pub pending: bool,
}Expand description
The core IR type — a single testable clause.
Fields§
§id: ClauseId§keyword: Keyword§severity: Severity§text: String§condition: Option<String>§otherwise: Vec<Clause>§temporal: Option<Temporal>§hints: Vec<String>§source_location: SourceLocation§content_hash: String§pending: boolClause is declared with a PENDING prefix: the author has committed to
the obligation strength but the implementation is deferred. The
generator must skip pending clauses and the runner reports them as
pending rather than passed/failed/skipped.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Clause
impl<'de> Deserialize<'de> for Clause
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
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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