steam-enums 0.1.2

Steam protocol enumerations (EResult, EMsg, EAccountType, etc.) for Rust.
Documentation
  • Coverage
  • 0%
    0 out of 6788 items documented0 out of 678 items with examples
  • Size
  • Source code size: 780.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 31.57 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 36s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ALPhaHoai lengoclongk59

steam-enums

Crates.io Docs.rs License: MIT

Auto-generated Rust enums for the Steam protocol, derived from Valve's protobuf definitions and SteamKit sources.

Installation

[dependencies]
steam-enums = "0.1"

Overview

Every enum in this crate corresponds to a Steam protocol value — account types, app states, market categories, chat states, lobby types, and hundreds more. All types implement serde::Serialize and serde::Deserialize for use in API responses, database documents, and protobuf-adjacent payloads.

The crate is code-generated. Do not hand-edit individual enum files.

Usage

All enums are re-exported from the crate root:

use steam_enums::{EAccountType, EPersonaState, EChatEntryType};

let account_type = EAccountType::Individual;
let state = EPersonaState::Online;

Conventions

  • All enum names follow the original Valve E-prefix naming convention (e.g., EAccountType, EAppType).
  • Variants are integer-backed and #[repr(i32)] unless the underlying type requires otherwise.
  • Unknown or future values can be represented as raw integers via the __Unknown(i32) catch-all variant where present.

Dependencies

Crate Role
serde Serialize/Deserialize derives for all enum types