pub struct Feature {Show 13 fields
pub id: FeatureId,
pub ordinal: u64,
pub name: Option<String>,
pub suppressed: Option<bool>,
pub parent: Option<FeatureId>,
pub dependencies: Vec<FeatureId>,
pub source_properties: BTreeMap<String, String>,
pub source_tag: Option<String>,
pub source_text: Option<String>,
pub source_content: Vec<FeatureSourceContent>,
pub outputs: Vec<BodyId>,
pub definition: FeatureDefinition,
pub native_ref: Option<String>,
}Expand description
An ordered neutral construction feature and its resulting bodies.
Fields§
§id: FeatureIdGlobally unique feature id.
ordinal: u64Stable construction order within the source history.
name: Option<String>Source display name.
suppressed: Option<bool>Whether evaluation of this feature is disabled.
parent: Option<FeatureId>Containing or logically preceding feature, when represented by the source.
dependencies: Vec<FeatureId>Earlier features consumed during regeneration, in source operand order.
source_properties: BTreeMap<String, String>Source operation attributes not consumed by the neutral definition.
source_tag: Option<String>Source XML element name for the operation record.
source_text: Option<String>Text payload of a source leaf operation.
source_content: Vec<FeatureSourceContent>Ordered source text, parameter, and child-feature content.
outputs: Vec<BodyId>Bodies produced or modified by the feature.
definition: FeatureDefinitionNeutral construction semantics.
native_ref: Option<String>Identifier of the full-fidelity record in a native namespace.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Feature
impl<'de> Deserialize<'de> for Feature
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
Source§impl JsonSchema for Feature
impl JsonSchema for Feature
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 Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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