pub struct CompositionRuleSetV1 {
pub schema_version: String,
pub composition_rule_set_id: CompositionRuleSetId,
pub version: String,
pub family_rules: Vec<ObligationFamilyRuleV1>,
pub conflict_classes: Vec<ConflictClassRuleV1>,
pub exception_rules: Vec<ExceptionAdmissibilityRuleV1>,
pub downgrade_behavior: String,
pub reference_evaluator_version: String,
}Fields§
§schema_version: String§composition_rule_set_id: CompositionRuleSetId§version: String§family_rules: Vec<ObligationFamilyRuleV1>§conflict_classes: Vec<ConflictClassRuleV1>§exception_rules: Vec<ExceptionAdmissibilityRuleV1>§downgrade_behavior: String§reference_evaluator_version: StringImplementations§
Source§impl CompositionRuleSetV1
impl CompositionRuleSetV1
Sourcepub fn reference_v1() -> Self
pub fn reference_v1() -> Self
Returns the reference composition rules used by the current closeout lane.
Sourcepub fn family_rule(&self, family: &str) -> Option<&ObligationFamilyRuleV1>
pub fn family_rule(&self, family: &str) -> Option<&ObligationFamilyRuleV1>
Looks up the obligation-family rule that governs a compiled family key.
Sourcepub fn conflict_class(&self, class: &str) -> Option<&ConflictClassRuleV1>
pub fn conflict_class(&self, class: &str) -> Option<&ConflictClassRuleV1>
Looks up the conflict-class rule that governs a named conflict class.
Trait Implementations§
Source§impl Clone for CompositionRuleSetV1
impl Clone for CompositionRuleSetV1
Source§fn clone(&self) -> CompositionRuleSetV1
fn clone(&self) -> CompositionRuleSetV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompositionRuleSetV1
impl Debug for CompositionRuleSetV1
Source§impl<'de> Deserialize<'de> for CompositionRuleSetV1
impl<'de> Deserialize<'de> for CompositionRuleSetV1
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 CompositionRuleSetV1
Source§impl JsonSchema for CompositionRuleSetV1
impl JsonSchema for CompositionRuleSetV1
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CompositionRuleSetV1
impl PartialEq for CompositionRuleSetV1
Source§fn eq(&self, other: &CompositionRuleSetV1) -> bool
fn eq(&self, other: &CompositionRuleSetV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompositionRuleSetV1
impl Serialize for CompositionRuleSetV1
impl StructuralPartialEq for CompositionRuleSetV1
Auto Trait Implementations§
impl Freeze for CompositionRuleSetV1
impl RefUnwindSafe for CompositionRuleSetV1
impl Send for CompositionRuleSetV1
impl Sync for CompositionRuleSetV1
impl Unpin for CompositionRuleSetV1
impl UnsafeUnpin for CompositionRuleSetV1
impl UnwindSafe for CompositionRuleSetV1
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