pub struct SchemaLoweringProfile {Show 13 fields
pub id: SchemaLoweringProfileId,
pub fingerprint_domain: FingerprintDomain,
pub canonicalization: CanonicalizationVersion,
pub semantic_profile: SemanticProfileId,
pub provider: String,
pub provider_version: String,
pub transactional_schema_queries: bool,
pub required_capabilities: CapabilitySet,
pub interface_defaults: Vec<InterfaceDefault>,
pub fact_rules: Vec<FactTransitionRule>,
pub annotation_rules: Vec<AnnotationTransitionRule>,
pub safety_rules: Vec<SafetyScenarioRule>,
pub evidence: Vec<EvidenceFlag>,
}Expand description
Frozen, fingerprinted registry for lowering schema deltas to one provider.
Fields§
§id: SchemaLoweringProfileIdStable profile identifier.
fingerprint_domain: FingerprintDomainDomain used to fingerprint canonical profile bytes.
canonicalization: CanonicalizationVersionCanonicalization identity used for profile bytes.
semantic_profile: SemanticProfileIdSchema semantic profile accepted by this lowering profile.
provider: StringProvider family name.
provider_version: StringExact measured provider version.
transactional_schema_queries: boolWhether schema statements execute transactionally.
required_capabilities: CapabilitySetCapabilities required to execute every supported rule.
interface_defaults: Vec<InterfaceDefault>Provider defaults for schema interfaces.
fact_rules: Vec<FactTransitionRule>Closed fact-transition rule table.
annotation_rules: Vec<AnnotationTransitionRule>Closed annotation-transition rule table.
safety_rules: Vec<SafetyScenarioRule>Closed semantic safety rule table.
evidence: Vec<EvidenceFlag>Measured provider evidence bound by the profile.
Implementations§
Source§impl SchemaLoweringProfile
impl SchemaLoweringProfile
Sourcepub fn fact_rule(
&self,
fact: FactKind,
transition: FactTransition,
) -> Option<&TransitionRule>
pub fn fact_rule( &self, fact: FactKind, transition: FactTransition, ) -> Option<&TransitionRule>
Return the rule for an exact fact transition, when registered.
Sourcepub fn annotation_rule(
&self,
subject: AnnotationSubjectKind,
annotation: AnnotationKind,
transition: AnnotationTransition,
) -> Option<&TransitionRule>
pub fn annotation_rule( &self, subject: AnnotationSubjectKind, annotation: AnnotationKind, transition: AnnotationTransition, ) -> Option<&TransitionRule>
Return the rule for an exact annotation transition, when registered.
Sourcepub fn safety_rule(
&self,
scenario: SafetyScenario,
) -> Option<&SafetyScenarioRule>
pub fn safety_rule( &self, scenario: SafetyScenario, ) -> Option<&SafetyScenarioRule>
Return the safety rule for an exact semantic scenario.
Trait Implementations§
Source§impl Clone for SchemaLoweringProfile
impl Clone for SchemaLoweringProfile
Source§fn clone(&self) -> SchemaLoweringProfile
fn clone(&self) -> SchemaLoweringProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more