pub struct ConfigurationAttributeAssociation { /* private fields */ }Expand description
One configuration-group to attribute relationship from the SDK schema.
Attribute descriptors answer which name and value representation SCS uses;
they do not answer which configuration group carries that value. This
distinction matters for shared names such as id, brand, and
wheel.position, and for attributes added to an existing group later than
the attribute name itself first appeared elsewhere.
The relationship therefore owns separate per-game availability metadata.
Schema generators and diagnostics can enumerate these values without
weakening the typed Attribute<T> API used to decode callback data.
Implementations§
Source§impl ConfigurationAttributeAssociation
impl ConfigurationAttributeAssociation
Sourcepub const fn new<T: SdkValue>(
configuration: ConfigurationId,
attribute: Attribute<T>,
availability: GameSchemaAvailability,
) -> Self
pub const fn new<T: SdkValue>( configuration: ConfigurationId, attribute: Attribute<T>, availability: GameSchemaAvailability, ) -> Self
Declares that one typed attribute belongs to a configuration group.
availability must describe the relationship, not merely repeat the
earliest schema of either descriptor. For example, brand existed on
the truck configuration before it was added to trailer configuration.
Sourcepub const fn configuration(self) -> ConfigurationId
pub const fn configuration(self) -> ConfigurationId
Configuration group which carries the attribute.
Sourcepub const fn attribute(self) -> AnyAttribute
pub const fn attribute(self) -> AnyAttribute
Type-erased attribute metadata for enumeration and diagnostics.
Sourcepub const fn availability(self) -> GameSchemaAvailability
pub const fn availability(self) -> GameSchemaAvailability
First ETS2 and ATS schemas which expose this relationship.
Trait Implementations§
Source§impl Clone for ConfigurationAttributeAssociation
impl Clone for ConfigurationAttributeAssociation
Source§fn clone(&self) -> ConfigurationAttributeAssociation
fn clone(&self) -> ConfigurationAttributeAssociation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more