pub struct ListActivity { /* private fields */ }Expand description
Request builder for listing user activity
Implementations§
Source§impl ListActivity
impl ListActivity
Sourcepub fn market(
self,
condition_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn market( self, condition_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by market condition IDs (comma-separated)
Sourcepub fn event_id(
self,
event_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn event_id( self, event_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by event IDs (comma-separated)
Sourcepub fn activity_type(
self,
types: impl IntoIterator<Item = ActivityType>,
) -> Self
pub fn activity_type( self, types: impl IntoIterator<Item = ActivityType>, ) -> Self
Filter by activity types (comma-separated). ActivityType::Unknown is
silently dropped since the upstream API has no matching value to filter on.
Sourcepub fn start(self, timestamp: i64) -> Self
pub fn start(self, timestamp: i64) -> Self
Lower-bound timestamp (epoch seconds) for the activity window.
Omit or pass 0 for the default window (most recent ~3 years); pass a
positive epoch (e.g. 1) to retrieve full history. With
sort_direction(SortDirection::Asc), omitting
start anchors paging to the default window’s floor.
Sourcepub fn end(self, timestamp: i64) -> Self
pub fn end(self, timestamp: i64) -> Self
Upper-bound timestamp (epoch seconds) for the activity window.
Omit for the default (current time); rows newer than end are excluded.
Sourcepub fn limit(self, limit: u32) -> Self
pub fn limit(self, limit: u32) -> Self
Set maximum number of results (0-500, default: 100)
Values above the maximum are clamped to 500 server-side.
Sourcepub fn sort_by(self, sort_by: ActivitySortBy) -> Self
pub fn sort_by(self, sort_by: ActivitySortBy) -> Self
Set sort field (default: TIMESTAMP)
Sourcepub fn sort_direction(self, direction: SortDirection) -> Self
pub fn sort_direction(self, direction: SortDirection) -> Self
Set sort direction (default: DESC)