pub struct Plan {Show 15 fields
pub schema: String,
pub compiler: String,
pub registry: String,
pub definition_id: DefinitionId,
pub definition: Definition,
pub order: Vec<String>,
pub steps: Vec<PlanStep>,
pub notices: Vec<Notice>,
pub execution: PlanExecution,
pub sources: Option<Vec<BoundSource>>,
pub grades: Option<Vec<StaticGrade>>,
pub actionability: Option<PlanActionability>,
pub instantiation: Option<Instantiation>,
pub screening: Option<PlanScreening>,
pub acquisitions: Option<Vec<PlanAcquisition>>,
}Fields§
§schema: String§compiler: Stringrustev-core/<crate version>.
registry: Stringrustev.exact/1, or for a plan 3 the lowest registry version
containing every operator, predicate and reference form it uses.
definition_id: DefinitionId§definition: Definition§order: Vec<String>Step ids in topological order, ties by declaration order.
steps: Vec<PlanStep>One entry per step, in declaration order.
notices: Vec<Notice>§execution: PlanExecutionThe runtime execution policy (spec 003, 3.2.1); none means one
attempt per request on the bound backend, nothing else.
sources: Option<Vec<BoundSource>>Plan 3: every bound source, in name order (spec 032, 3.3.4).
grades: Option<Vec<StaticGrade>>Plan 3: the static grade table (spec 032, 3.9.3).
actionability: Option<PlanActionability>Plan 3: present exactly when the definition has actionability
(spec 033, 3.1.2).
instantiation: Option<Instantiation>Instantiation evidence (spec 034, 3.10.1). Present only in a
rustev.plan/3 document; absent from every earlier plan.
screening: Option<PlanScreening>Optional screening contract (spec 035); omitted when unused.
acquisitions: Option<Vec<PlanAcquisition>>Spec 036: omitted when the plan has no acquisition step.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
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>,
Source§impl Document for Plan
impl Document for Plan
Source§const SCHEMA: &'static str = schema::PLAN
const SCHEMA: &'static str = schema::PLAN
Source§const LIMITS: ParseLimits = PLAN_V1
const LIMITS: ParseLimits = PLAN_V1
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
Source§impl Identified for Plan
impl Identified for Plan
Source§impl JsonSchema for Plan
impl JsonSchema for Plan
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more