pub struct GameSchemaAvailability { /* private fields */ }Expand description
Per-game schema versions in which an official telemetry descriptor exists.
SCS versions three different contracts independently: the downloadable SDK
archive, the Telemetry API negotiated by scs_telemetry_init, and the game
telemetry schema supplied in the initialization parameters. Channel,
configuration, and gameplay descriptor additions belong to the last of
those domains. Consequently this value stores one minimum schema for ETS2
and another for ATS instead of pretending that an archive number or a
Telemetry API version answers the same question.
A None entry is meaningful: the current official game header explicitly
documents that descriptor as unavailable for that game. It is not an
unknown-version wildcard. The SDK 1.0 through 1.14 header history is the
source for the metadata attached to the built-in catalogs.
Implementations§
Source§impl GameSchemaAvailability
impl GameSchemaAvailability
Sourcepub const fn new(
ets2: Option<GameSchemaVersion>,
ats: Option<GameSchemaVersion>,
) -> Self
pub const fn new( ets2: Option<GameSchemaVersion>, ats: Option<GameSchemaVersion>, ) -> Self
Describes the first schema which exposes a descriptor in each game.
Use None only when the official headers explicitly exclude the
descriptor for that game. Custom descriptors should still state their
evidence explicitly instead of inheriting an implicit “all versions”
policy.
Sourcepub const fn available_since_ets2(self) -> Option<GameSchemaVersion>
pub const fn available_since_ets2(self) -> Option<GameSchemaVersion>
Oldest ETS2 telemetry schema which exposes the descriptor.
Sourcepub const fn available_since_ats(self) -> Option<GameSchemaVersion>
pub const fn available_since_ats(self) -> Option<GameSchemaVersion>
Oldest ATS telemetry schema which exposes the descriptor.
Trait Implementations§
Source§impl Clone for GameSchemaAvailability
impl Clone for GameSchemaAvailability
Source§fn clone(&self) -> GameSchemaAvailability
fn clone(&self) -> GameSchemaAvailability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more