Skip to main content

steam_endpoint

Attribute Macro steam_endpoint 

Source
#[steam_endpoint]
Expand description

Annotate a Steam HTTP endpoint method with structured metadata.

§Syntax

#[steam_endpoint(GET, host = Community, path = "/actions/GetNotificationCounts", kind = Read)]
pub async fn get_notifications(&self) -> Result<Notifications, SteamUserError> { ... }
  • METHOD: bare ident — GET, POST, PUT, or DELETE.
  • host: bare ident — variant of crate::endpoint::Host.
  • path: string literal — URL path template (e.g. /profiles/{steam_id}/edit), not a resolved URL. Used as a low-cardinality label in metrics.
  • kind: bare ident — variant of crate::endpoint::EndpointKind (Read, Write, Auth, Upload, Recovery).