pub struct CheckDecl {
pub id: String,
pub subject: String,
pub test: Predicate,
pub on_fail: OnFail,
}Expand description
A provenance-conditional check (3.2.2).
Fields§
§id: String§subject: StringThe declared input whose provenance the check branches on.
test: PredicateA bool predicate over inputs, now and literals.
on_fail: OnFailTrait Implementations§
Source§impl<'de> Deserialize<'de> for CheckDecl
impl<'de> Deserialize<'de> for CheckDecl
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 CheckDecl
Source§impl JsonSchema for CheckDecl
impl JsonSchema for CheckDecl
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CheckDecl
Auto Trait Implementations§
impl Freeze for CheckDecl
impl RefUnwindSafe for CheckDecl
impl Send for CheckDecl
impl Sync for CheckDecl
impl Unpin for CheckDecl
impl UnsafeUnpin for CheckDecl
impl UnwindSafe for CheckDecl
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