pub struct Events { /* private fields */ }Expand description
Events namespace for event-related operations
Implementations§
Source§impl Events
impl Events
Sourcepub fn list(&self) -> ListEvents
pub fn list(&self) -> ListEvents
List events with optional filtering
Sourcepub fn get_by_slug(&self, slug: impl Into<String>) -> GetEvent
pub fn get_by_slug(&self, slug: impl Into<String>) -> GetEvent
Get an event by slug
Get tags for an event
Sourcepub fn tweet_count(
&self,
id: impl Into<String>,
) -> Request<CountResponse, GammaError>
pub fn tweet_count( &self, id: impl Into<String>, ) -> Request<CountResponse, GammaError>
Get tweet count for an event
Sourcepub fn comment_count(
&self,
id: impl Into<String>,
) -> Request<CountResponse, GammaError>
pub fn comment_count( &self, id: impl Into<String>, ) -> Request<CountResponse, GammaError>
Get comment count for an event
Sourcepub fn list_creators(&self) -> ListEventCreators
pub fn list_creators(&self) -> ListEventCreators
List event creators with optional filtering
(GET /events/creators).
Sourcepub fn get_creator(
&self,
id: impl Into<String>,
) -> Request<EventCreator, GammaError>
pub fn get_creator( &self, id: impl Into<String>, ) -> Request<EventCreator, GammaError>
Get an event creator by ID (GET /events/creators/{id}).
Sourcepub fn list_paginated(&self) -> ListPaginatedEvents
pub fn list_paginated(&self) -> ListPaginatedEvents
List events with offset-style pagination metadata
(GET /events/pagination).
Sourcepub fn list_results(&self) -> ListEventResults
pub fn list_results(&self) -> ListEventResults
List sport event results (GET /events/results).
Sourcepub fn list_keyset(&self) -> ListKeysetEvents
pub fn list_keyset(&self) -> ListKeysetEvents
List events using cursor-based (keyset) pagination
(GET /events/keyset).
Prefer this over Self::list for stable paging through large result
sets. Use next_cursor from each response as after_cursor in the
next request; pagination is complete when next_cursor is None.
Note: a handful of obscure upstream query parameters
(start_time_min/max, event_date, event_week, recurrence,
created_by, parent_event_id, include_children, partner_slug,
include_best_lines, locale, decimalized, tag_match) are not
yet exposed. The majority of filters are available; callers needing
the omitted params can reach the endpoint directly via
Request::query.